【发布时间】:2017-06-13 22:14:50
【问题描述】:
我正在尝试使用以下代码绘制带有条形图的数据框:
df <- data.frame("Cat"=c("A", "B", "C"), "Var"=c(1,2,3))
qplot(Cat, Var, data=df, geom="bar")
但是,我收到以下错误,我似乎无法找到解决此问题的方法:
Error: stat_count() must not be used with a y aesthetic.
【问题讨论】: