Re: [R] Stacked barchart color

2007-06-22 Thread hadley wickham
Hi Owen, The bars should be stacked in the order specified by the factor. Try using factor(..., levels=...) to explicitly order them the way you want. If that doesn't work, please provide a small replicable example and I'll look into it. Hadley On 6/18/07, owenman [EMAIL PROTECTED] wrote:

Re: [R] Stacked barchart color

2007-06-18 Thread owenman
Hi Hadley, Great, I am starting to get it. It's working for me, but there is one more thing I am having trouble with. The ordering of the stacked bars seems to be dictated by the name of the color, I guess because of the fill=color argument in aes(). In other words, if I set up my colors like

Re: [R] Stacked barchart color

2007-06-16 Thread hadley wickham
On 6/16/07, owenman [EMAIL PROTECTED] wrote: Hi Hadley, I tried your suggestion, using ggplot2, but I am still having a problem. The final plot lacks the figure legend -- which it had before I added the scale_fill_identity() bit. Can you see what I am doing wrong? (By the way, all I am

Re: [R] Stacked barchart color

2007-06-15 Thread owenman
Hi Hadley, I tried your suggestion, using ggplot2, but I am still having a problem. The final plot lacks the figure legend -- which it had before I added the scale_fill_identity() bit. Can you see what I am doing wrong? (By the way, all I am trying to do is make the figure monochrome

[R] Stacked barchart color

2007-06-12 Thread Dieter Menne
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? Dieter # This only colors red and green, but I want blue and gray for Peatland.

Re: [R] Stacked barchart color

2007-06-12 Thread hadley wickham
On 6/12/07, Dieter Menne [EMAIL PROTECTED] 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? Dieter # This only colors red

Re: [R] Stacked barchart color

2007-06-12 Thread Deepayan Sarkar
On 6/12/07, Dieter Menne [EMAIL PROTECTED] 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? Dieter # This only colors red

Re: [R] Stacked barchart color

2007-06-12 Thread Dieter Menne
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