Skip to content
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

geom_circle() + scale_*_reverse() inconsistent behaviour to rest of ggplot2 #49

Closed
npjc opened this issue Dec 7, 2016 · 1 comment
Closed
Labels
bug an unexpected problem or unintended behavior

Comments

@npjc
Copy link

npjc commented Dec 7, 2016

with geom_circle() adding scale_*_reverse() seems to do a multiply by -1 transformation and not a reverse the axis transformation as expected (i.e. what happens in other ggplot2 geoms)

library(ggforce)
#> Loading required package: ggplot2
d <- data.frame(x0 = 1, y0 = 1, r = 0.5)

ggplot(d) + geom_circle(aes(x0 = x0, y0 = y0, r = r))

ggplot(d) + geom_circle(aes(x0 = x0, y0 = y0, r = r)) + scale_y_reverse()

ggplot(d) + geom_circle(aes(x0 = x0, y0 = y0, r = r)) + scale_x_reverse()

devtools::session_info()
#> Session info --------------------------------------------------------------
#>  setting  value                       
#>  version  R version 3.3.2 (2016-10-31)
#>  system   x86_64, darwin16.1.0        
#>  ui       unknown                     
#>  language (EN)                        
#>  collate  en_CA.UTF-8                 
#>  tz       America/Vancouver           
#>  date     2016-12-06
#> Packages ------------------------------------------------------------------
#>  package    * version date       source        
#>  assertthat   0.1     2013-12-06 CRAN (R 3.3.2)
#>  backports    1.0.4   2016-10-24 CRAN (R 3.3.2)
#>  colorspace   1.3-1   2016-11-18 CRAN (R 3.3.2)
#>  DBI          0.5-1   2016-09-10 CRAN (R 3.3.2)
#>  devtools     1.12.0  2016-06-24 CRAN (R 3.3.2)
#>  digest       0.6.10  2016-08-02 CRAN (R 3.3.2)
#>  dplyr        0.5.0   2016-06-24 CRAN (R 3.3.2)
#>  evaluate     0.10    2016-10-11 CRAN (R 3.3.2)
#>  formatR      1.4     2016-05-09 CRAN (R 3.3.2)
#>  ggforce    * 0.1.1   2016-11-28 CRAN (R 3.3.2)
#>  ggplot2    * 2.2.0   2016-11-11 CRAN (R 3.3.2)
#>  gtable       0.2.0   2016-02-26 CRAN (R 3.3.2)
#>  htmltools    0.3.5   2016-03-21 CRAN (R 3.3.2)
#>  knitr        1.15.1  2016-11-22 CRAN (R 3.3.2)
#>  labeling     0.3     2014-08-23 CRAN (R 3.3.2)
#>  lazyeval     0.2.0   2016-06-12 CRAN (R 3.3.2)
#>  magrittr     1.5     2014-11-22 CRAN (R 3.3.2)
#>  MASS         7.3-45  2016-04-21 CRAN (R 3.3.2)
#>  memoise      1.0.0   2016-01-29 CRAN (R 3.3.2)
#>  munsell      0.4.3   2016-02-13 CRAN (R 3.3.2)
#>  plyr         1.8.4   2016-06-08 CRAN (R 3.3.2)
#>  R6           2.2.0   2016-10-05 CRAN (R 3.3.2)
#>  Rcpp         0.12.8  2016-11-17 CRAN (R 3.3.2)
#>  rmarkdown    1.2     2016-11-21 CRAN (R 3.3.2)
#>  rprojroot    1.1     2016-10-29 CRAN (R 3.3.2)
#>  scales       0.4.1   2016-11-09 CRAN (R 3.3.2)
#>  stringi      1.1.2   2016-10-01 CRAN (R 3.3.2)
#>  stringr      1.1.0   2016-08-19 CRAN (R 3.3.2)
#>  tibble       1.2     2016-08-26 CRAN (R 3.3.2)
#>  tweenr       0.1.5   2016-10-10 CRAN (R 3.3.2)
#>  udunits2     0.13    2016-11-17 CRAN (R 3.3.2)
#>  units        0.4     2016-11-21 CRAN (R 3.3.2)
#>  withr        1.0.2   2016-06-20 CRAN (R 3.3.2)
@thomasp85 thomasp85 added the bug an unexpected problem or unintended behavior label Dec 7, 2016
@thomasp85
Copy link
Owner

This should be fixed by tidyverse/ggplot2#3168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants