[R] ggplot2: Changing colour scheme for bar plot filling?

Johannes Graumann johannes_graumann at web.de
Wed Mar 10 10:31:53 CET 2010


Indeed. Thank you. Is there a global switch analogous to 
"theme_set(theme_bw())"?

thanks for your help, Joh

On Wednesday 10 March 2010 10:29:05 baptiste auguie wrote:
> Hi,
> 
> last_plot() + scale_fill_grey()
> 
> should do it
> 
> HTH,
> 
> baptiste
> 
> On 10 March 2010 09:46, Johannes Graumann <johannes_graumann at web.de> wrote:
> > Hello,
> >
> > I'd like to sitch to a monochrome/bw color-palette for the filling of
> > geom_bar-bars (produced via "qplot" as in the example below). Hours of
> > googling didn't yield anything useful, so I thought, I'd just ask ...
> >
> > Thanks, Joh
> >
> > library(ggplot2)
> > qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(cyl))
> >
> > ______________________________________________
> > R-help at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html and provide commented,
> > minimal, self-contained, reproducible code.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100310/e3e164ff/attachment.bin>


More information about the R-help mailing list