【发布时间】:2013-10-07 18:09:02
【问题描述】:
如果x 为数字且y 为空,我想为qplot 创建一个包装器,将默认几何图形从histogram 更改为dotplot。但是我无法让qplot 与geom_dotplot 一起工作:
> x <- rnorm(100)
> qplot(x, geom="dotplot")
stat_bindot: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
Error in if (params$stackdir == "up") { : argument is of length zero
如何使用qplot 来创建此图:
ggplot(,aes(x=x)) + geom_dotplot()
【问题讨论】: