Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 ggplot 新手,很难创建简单的条形图。我的数据已经分箱,我只想重新创建一个条形图
x freq 2 10 7 18 9 10 18 90
我希望 x 轴使用 x 数据作为标签而不“缩放”数据,本质上,我想我正在尝试做一个scale_identity但无法弄清楚。我做到了这一点:
scale_identity
qplot(x=V1, y=V2, data=test, geom="bar", stat="identity", color="red")