-
Notifications
You must be signed in to change notification settings - Fork 20
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
Guide compatability with ggplot2 >3.4.2 #25
Conversation
@@ -53,7 +57,7 @@ expect_silent(ggplotGrob(g2)) | |||
control <- grab_axis(g1, side = "l") | |||
test <- grab_axis(g2, side = "l") | |||
|
|||
p + scale_x_discrete(position = "right", guide = "prism_bracket") | |||
# p + scale_x_discrete(position = "right", guide = "prism_bracket") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure what this part was supposed to do. It's unfamiliar to me to place an x-axis on the right, and this gives an error with development version of ggplot2.
Thank for this I'll take a look ASAP |
Hi @csdaw, I've updated the PR for further compatibility with the upcoming ggplot2 version. remotes::install_github("tidyverse/ggplot2", ref = remotes::github_pull("5592")) The release of ggplot2 3.5.0 is scheduled for the 12th of February. The progress of the release can be tracked in tidyverse/ggplot2#5588. I hope that this PR might help ggprism get out a fix if necessary. |
This is just a kind reminder that the release is scheduled soon. |
Hi @csdaw, Just wanted to add quick ping that it would be great to merge this soon and push to CRAN. I import For now I'm going to work in a temp fix so that I can push my release out sooner but would be great to be able to remove that in near future. Thanks! |
Sorry for the delay, life things got in the way. Thanks heaps @teunbrand for all your work 🤩 |
Hi Charlotte,
Apologies for the cold PR without filing an issue first.
The ggplot2 package has changed the implementation of the guide system, which means that the old S3 will no longer work in ggplot2, see the news file. Because this change isn't fully backwards compatible, guides, including those in ggprism, have broken.
This PR lifts over the old S3 methods for axis drawing so that ggprism can work with the development version of ggplot2.
Tests mostly* run fine in either current CRAN or development version.
* see comments
Best,
Teun