Re: [R] Stacked barchart color

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Tue, 12 Jun 2007 19:06:30 +0000 (UTC)

hadley wickham <h.wickham <at> gmail.com> writes:

>
> On 6/12/07, Dieter Menne <dieter.menne <at> menne-biomed.de> wrote:
> > Dear Latticer,
> >
> > I want to give individual colors to all elements in a simple stacked
> > barchart. I know why the example below does not work (and it is a excellent
> > default), but is there any workaround for this?
> >
>
> You can do this with ggplot2 (http://had.co.nz/ggplot2) as follows:
>
> library(ggplot2)
...

Thanks, Hadley and Deepayan. Hadley's version required the latest update of ggplot2 (0.5.1).

Dieter



R-help_at_stat.math.ethz.ch 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. Received on Tue 12 Jun 2007 - 19:11:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Jun 2007 - 21:32:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.