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

Preserve aesthetics in colourbar merge #5328

Merged
merged 3 commits into from
Aug 9, 2023
Merged

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5324.

Briefly, it adjusts the GuideColourbar$merge() method to preserve the aesthetic column of the merged-in guide.
This causes the GuideColourbar$get_layer_key() to not throw out the guide if the first but not the second aesthetic is used in a layer.

@teunbrand teunbrand added bug an unexpected problem or unintended behavior guides 📏 labels Jul 9, 2023
Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@teunbrand teunbrand merged commit 2cd0e96 into tidyverse:main Aug 9, 2023
12 checks passed
@teunbrand teunbrand deleted the merge_bug branch August 9, 2023 19:25
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 guides 📏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

geom_raster drops legend when col and fill aesthetics added
2 participants