Repository navigation
ScalesList methods - #5144
ScalesList methods#5144
Conversation
|
blast from the past :-) |
thomasp85
left a comment
There was a problem hiding this comment.
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 theScalesListobject, which is what this PR does.I think it has 2 benefits:
ScalesList$scalesdon't need to be passed around, making such calls a little bit more terse.