From the online bar chart guide:
qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(gear))
How do I get 5 to sit on the bottom, 4 above that, and 3 on top?
From the online bar chart guide:
qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(gear))
How do I get 5 to sit on the bottom, 4 above that, and 3 on top?
qplot(factor(cyl), data=mtcars, geom='bar', fill=factor(gear, level=5:3))
qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(gear), order = -gear)