我想制作一个包装器qplot,将默认几何图形从更改histogram为dotplot如果x是数字并且y为空。但是我无法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()