How do I change the stacking order in a bar chart in ggplot2?

Posted by jermdemo on Stack Overflow See other posts from Stack Overflow or by jermdemo
Published on 2010-03-11T18:47:40Z Indexed on 2010/03/13 0:37 UTC
Read the original article Hit count: 265

Filed under:
|

From the online bar chart guide:

qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(gear)) 

alt text

How do I get 5 to sit on the bottom, 4 above that, and 3 on top?

© Stack Overflow or respective owner

Related posts about ggplot2

Related posts about r