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

Add support for ggstance? #103

Closed
rpruim opened this issue Jul 13, 2018 · 6 comments
Closed

Add support for ggstance? #103

rpruim opened this issue Jul 13, 2018 · 6 comments

Comments

@rpruim
Copy link

rpruim commented Jul 13, 2018

Among other things, this would provide "natural" horizontal versions of geoms and stats (e.g. boxplot) that would not require the use of coord_flip().

This could be added in ggformula, or it could be put into ggformulaExtra.

See https://cran.r-project.org/web/packages/ggstance/README.html

@rpruim
Copy link
Author

rpruim commented Jul 15, 2018

Not sure what the state of ggstance is currently. Looks like there has been little recent development and it may not work with ggplot2 version 3.

Perhaps @lionel- can shed some light.

@lionel-
Copy link

lionel- commented Jul 16, 2018

I will send an update to CRAN soon for 3.0 compatibility.

@rpruim
Copy link
Author

rpruim commented Jul 16, 2018

@lionel- , thanks for the update. Any idea how soon soon might be? If it is very soon, I'll likely delay submission for ggfomula until this is in place. If it is still a couple weeks off, I'll plan to catch this in the next round.

@lionel-
Copy link

lionel- commented Jul 16, 2018

I'm planning to send it this week, so hopefully will be on CRAN by beginning of next week.

@rpruim
Copy link
Author

rpruim commented Jul 21, 2018

Looks like ggstance has been updated on CRAN as of yesterday. Thanks, @lionel- .

@rpruim
Copy link
Author

rpruim commented Jul 21, 2018

library(ggformula)
#> Loading required package: ggplot2
#> Loading required package: ggstance
#> 
#> Attaching package: 'ggstance'
#> The following objects are masked from 'package:ggplot2':
#> 
#>     geom_errorbarh, GeomErrorbarh
#> 
#> New to ggformula?  Try the tutorials: 
#>  learnr::run_tutorial("introduction", package = "ggformula")
#>  learnr::run_tutorial("refining", package = "ggformula")
gf_boxploth(substance ~ age, data = mosaicData::HELPrct, color = ~ sex, height = 0.9, fill = "transparent") %>%
  gf_violinh(substance ~ age, data = mosaicData::HELPrct, color = ~ sex, fill = "transparent") %>%
  gf_theme(theme_bw())

Created on 2018-07-21 by the reprex package (v0.2.0).

@rpruim rpruim closed this as completed Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants