来自在线条形图指南:
qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(gear))
![barplot using <code>qplot</code> feature of <code>ggplot2</code>](https://i.stack.imgur.com/T9H6N.png)
我怎样才能让 5 个坐在底部,4 个放在上面,3 个放在上面?
qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(gear), order = -gear)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)