-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add value matching to breaks in manual_scale #3579
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
Conversation
Just to be sure this actually works as it should, could you provide a reprex where the data values are not identical to the color names? E.g., use this as your data: df <- data.frame(x = c("data_red", "data_black")) |
That's a good point; I've updated the reprex as you suggested. |
I've looked over the patch. It looks good to me, but we should get a second opinion from somebody else on the team. A few additional items we will need:
|
Oh, also, put "Fixes #2429." into your next commit, so this is properly recorded in the git log. |
…ching in scale_manual
I've added the news item and a couple of unit tests. Thanks for the feedback again! |
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.
Looks good. A few more minor changes are needed.
All done. Give me a shout if there's anything else. |
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.
Generally this looks good to me.
@thomasp85 Could you take a look also?
Thank you for your contribution! |
Fixes #2429.
As noted in the issue, currently
values
can be matched with a named vector. The below examples show (1) this as a baseline, (2) how behaviour changes asbreaks
are added, and the new behaviour (3) whenvalues
is not a named vector.Created on 2019-10-19 by the reprex package (v0.3.0)