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 'get_Legend()' to extract legend from a ggplot object #7

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

ycl6
Copy link
Owner

@ycl6 ycl6 commented Sep 18, 2024

This PR adds a new function get_Legend to this package.

The get_legend function from the cowplot package stopped working properly with ggplot2 v3.5.0. A modified function was contributed by Teun van den Brand (teunbrand) on cowplot's GitHub Issues and should work with the newer version of ggplot2.

Please refer to wilkelab/cowplot#202 on the discussion of this bug and fixes.

@ycl6 ycl6 merged commit 4a57736 into main Sep 19, 2024
@ycl6 ycl6 deleted the get_Legend_fix branch September 19, 2024 08:16
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.

1 participant