Skip to content

geom_dotplot is not working with qplot. #825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rasmusab opened this issue Jun 27, 2013 · 1 comment
Closed

geom_dotplot is not working with qplot. #825

rasmusab opened this issue Jun 27, 2013 · 1 comment

Comments

@rasmusab
Copy link
Contributor

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 zero

If 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 
@hadley
Copy link
Member

hadley commented Feb 24, 2014

This sounds like a great feature/horrible bug, but unfortunately we don't currently have the development bandwidth to support it/fix it. If you'd like to submit a pull request that implements this feature/fixes this bug, please follow the instructions in the development vignette.

@hadley hadley closed this as completed Feb 24, 2014
hadley added a commit that referenced this issue Feb 26, 2014
Fix for issue #825 so that dotplot now works with qplot.
@lock lock bot locked as resolved and limited conversation to collaborators Jun 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants