Re: [R] Ordering of stack in ggplot (package ggplot2)

2011-10-19 Thread swonder03
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

Re: [R] Ordering of stack in ggplot (package ggplot2)

2011-10-18 Thread Dennis Murphy
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 definition of a

Re: [R] Ordering of stack in ggplot (package ggplot2)

2011-10-18 Thread David Winsemius
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