That worked great thank you.
--
View this message in context:
http://r.789695.n4.nabble.com/Ordering-of-stack-in-ggplot-package-ggplot2-tp3917159p3917520.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing lis
On Oct 18, 2011, at 7:59 PM, swonder03 wrote:
I'm trying to reproduce the 3rd graph on the page of this site:
http://learnr.wordpress.com/2009/03/17/ggplot2-barplots/ . However,
the data
below produces a ggplot with the stacks sorted in alphabetical order
from
the bottom up. I'd like the st
Hi:
levels(df.m2$Region)
[1] "Africa" "Americas" "Asia" "Europe" "Oceania"
Reorder your Region factor to the following:
df.m2$Region <- factor(df.m2$Region, levels = c('Europe', 'Asia',
'Americas', 'Africa', 'Oceania'))
Then recopy the code from the definitio
I'm trying to reproduce the 3rd graph on the page of this site:
http://learnr.wordpress.com/2009/03/17/ggplot2-barplots/ . However, the data
below produces a ggplot with the stacks sorted in alphabetical order from
the bottom up. I'd like the stacks to be in the order "Europe", "Asia",
"Americas, "
4 matches
Mail list logo