-
Notifications
You must be signed in to change notification settings - Fork 2.1k
geom_dotplot is not working with qplot. #825
Copy link
Copy link
Closed
Description
This produces a nice dot plot:
ggplot(mtcars, aes(x = mpg)) + geom_dotplot()
## stat_bindot: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.Using qplot I get the following error and no plot:
qplot(mpg, data=mtcars, 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 zeroIf it's not supposed to work then I'm sorry for wasting your time, but usually it is possible to transition between ggplot and qplot in this way in qqplot2...
sessionInfo()
## R version 3.0.1 (2013-05-16)
## Platform: i686-pc-linux-gnu (32-bit)
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=C LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
## attached base packages:
## [1] graphics grDevices utils datasets stats methods base
## other attached packages:
## [1] boot_1.3-9 reshape_0.8.4 plyr_1.8 stringr_0.6.2 lattice_0.20-15 ggplot2_0.9.3.1
## loaded via a namespace (and not attached):
## [1] colorspace_1.2-2 dichromat_2.0-0 digest_0.6.3 grid_3.0.1 gtable_0.1.2
## [6] labeling_0.1 MASS_7.3-26 munsell_0.4 proto_0.3-10 RColorBrewer_1.0-5
## [11] reshape2_1.2.2 scales_0.2.3 tools_3.0.1 Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels