-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ScalesList methods #5144
ScalesList methods #5144
Conversation
blast from the past :-) |
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.
LGTM - can you confirm that no implementations have been changed (the diff is pretty messed up so I don't fully trust my eye)
Other than some style things, the only thing I changed is I don't know if it is needed, but it would make the two methods more parallel. (as a reminder, you added this in 101c3a6). Happy to revert if you didn't apply it to de backtransform for good reasons. The diff is horrible, I'd just open the 1st and 3rd commit side-by-side. |
that was most likely an oversight by me... I also didn't add any unit tests for it by the looks of it - could I get you to add such a test to make sure we don't end there again |
I'm not quite sure what prompted the |
I'm merging this. If we want to add a test for the |
This PR aims to fix #1310.
In brief, ye olde issue suggested to convert the
scales_*()
functions to ggproto methods of theScalesList
object, which is what this PR does.I think it has 2 benefits:
ScalesList$scales
don't need to be passed around, making such calls a little bit more terse.