Skip to content

guide compatability with ggplot2 >3.4.2 #30

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

Merged
merged 2 commits into from
Oct 17, 2023
Merged

guide compatability with ggplot2 >3.4.2 #30

merged 2 commits into from
Oct 17, 2023

Conversation

teunbrand
Copy link
Contributor

Hi Stefan,

Apologies for the cold PR without posting an issue first.
The ggplot2 package has changed the implementation of the guide system, which means that the old S3 system will no longer work, see ggplot2's news file.

Unfortunately, these changes aren't fully backwards compatible, so packages implementing custom guides will need a few tweaks. This PR provides these tweaks for lemon. It is currently still work in progress (WIP) as I'm still trying to figure out what changes in ggplot2 would make the transition easier.

Best,
Teun

@teunbrand teunbrand marked this pull request as ready for review August 28, 2023 17:11
@teunbrand teunbrand changed the title WIP: guide compatability with ggplot2 >3.4.2 guide compatability with ggplot2 >3.4.2 Aug 28, 2023
@teunbrand
Copy link
Contributor Author

This PR is now ready for review.

@stefanedwards stefanedwards merged commit 6e01b61 into stefanedwards:master Oct 17, 2023
@teunbrand teunbrand deleted the guide_compat branch October 17, 2023 13:44
stefanedwards added a commit that referenced this pull request Nov 21, 2023
* Fixed compability with ggplot2 > 3.4.2 (see #30)
* `%||%` is no longer an exported function for R > 4.4, as it should be included into R's base from v. 4.5.
* Minor bugfix when no labels used.
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

Successfully merging this pull request may close these issues.

2 participants