Skip to content

Mark labels from default mappings and overwrite them if possible #4414

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 3 commits into from
Apr 15, 2021

Conversation

thomasp85
Copy link
Member

Fix #2406

This is a pragmatic fix to the issue described in #2406. With this, labels coming from default aesthetic mappings are marked, and allowed to be overwritten by an explicit mapping label

@thomasp85 thomasp85 added this to the ggplot2 3.3.4 milestone Apr 12, 2021
@thomasp85 thomasp85 requested a review from clauswilke April 12, 2021 14:06
@clauswilke
Copy link
Member

I don't have the bandwidth right now to look at this carefully. Would be great if somebody else could review this.

@thomasp85 thomasp85 requested review from yutannihilation and removed request for clauswilke April 12, 2021 16:45
@thomasp85
Copy link
Member Author

Sure - I've moved you off and will keep it mind

Copy link
Member

@yutannihilation yutannihilation left a comment

Choose a reason for hiding this comment

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

Looks good to me. Could you add a simple test to ensure this works before merging this?

@thomasp85 thomasp85 merged commit 397c1c7 into master Apr 15, 2021
@thomasp85 thomasp85 deleted the issue-2406-overwrite-default-labels branch April 15, 2021 08:34
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.

Default aesthetics for stats can create unexpected legend titles
3 participants