You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
midpoint is not transformed in scale_color_gradient2 #3198
When using scale_color_gradient2 with trans = "log10", I was expecting the midpoint to be transformed as well. The documentation does not specify how midpoint behaves under transformation.
I was expecting to use midpoint = color_midpoint so the trans = "log10" would apply to both the color aesthetic and the midpoint. However I had to apply manually midpoint = log10(color_midpoint).
The main advantage of letting the trans transform the midpoint is that if I change the transformation then the midpoint keeps being valid (and consistent with the aesthetic units), while now I have to manually transform the midpoint for every transformation I use.
Is is possible to change the behaviour of midpoint so it affected by trans? If not, is it possible to document this behaviour?
Activity