Repository navigation
Add value matching to breaks in manual_scale - #3579
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! |
clauswilke
left a comment
There was a problem hiding this comment.
Looks good. A few more minor changes are needed.
|
All done. Give me a shout if there's anything else. |
clauswilke
left a comment
There was a problem hiding this comment.
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
valuescan be matched with a named vector. The below examples show (1) this as a baseline, (2) how behaviour changes asbreaksare added, and the new behaviour (3) whenvaluesis not a named vector.Created on 2019-10-19 by the reprex package (v0.3.0)