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:
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
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
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
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.
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
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
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