Hadley,
Thanks a lot!
BTW, do you have any document explaining the object philosophy of
ggplot? I was trying to see how you defined scale_fill_identity, but
could not find it...
Cheers,
Pedro
At 19:50 2008/04/01, hadley wickham wrote:
> > However, it looks this works only when the data are in
> However, it looks this works only when the data are in the sequence
> of the levels in the factor defining the fill colours. When the
> sequence is different, the legend gets "scrambled", in that the order
> of the colours does not match the labels.
You can fix this by explicitly specifying
cted from a given body of
>data.
>~ John Tukey
>
>-Oorspronkelijk bericht-
>Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Namens Pedro de Barros
>Verzonden: zondag 23 maart 2008 13:02
>Aan: [EMAIL PROTECTED]
>Onderwerp: [R] ggplot2 - legend for fill coulours
>
be extracted from a given body of
data.
~ John Tukey
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Pedro de Barros
Verzonden: zondag 23 maart 2008 13:02
Aan: [EMAIL PROTECTED]
Onderwerp: [R] ggplot2 - legend for fill coulours
Urgentie: Hoog
Dear All,
I
Dear All,
I am trying to build a stacked bar plot, where I define the colours to use.
I have asked this before, and I was using a solution in
http://thread.gmane.org/gmane.comp.lang.r.general/100649/focus=100673
(thanks, Thierry).
However, it looks this works only when the data are in the sequ
5 matches
Mail list logo