2

qplotデフォルトのgeomを数値でnullの場合に変更histogramするラッパーをdotplot作成したいと思います。しかし、私は仕事をすることができません:xyqplotgeom_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()
4

2 に答える 2

3

qplot には、geom_dotplot のデフォルトの美学セットがありません。それらを手動で指定できます:

qplot(x, geom = "dotplot",
      stackdir = "up", stackgroups = FALSE, binaxis = "x")

プラスのビン幅。

于 2013-10-07T18:59:30.460 に答える