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
Bug in ggplot2 3.4.0 using scales::probability_trans #5112
Compare that to the same code in 3.4.0, which gives an S-shaped curve and also has the y axis starting at 0.5.
In this case, the transformation seems to be using pnorm and qnorm the wrong way round in adjusting the scale and the axis.
I tried a few other transformations, and several of them look odd, so I think this is an example of something deeper in the axis transformation routine.
Hi there, thanks for the report. On a first glance, this issue seems the same as #5113.
I think this might be related to the recent change introduced in #4194. Briefly, the default aesthetic for the eCDF stat is y = after_stat(y), and the y column gets back-transformed. Effectively, the system thinks the values that roll out of the stat are already in transformed space, whereas they're not.
It should be relatively easy to fix by giving the computed variable a different name than y.
Thanks for the reply. I agree it is probably the same as #5113. I haven't found similar problems with other stats, so your explanation sounds promising. Hopefully a simple fix!
Activity
teunbrand commentedon Dec 22, 2022
Hi there, thanks for the report. On a first glance, this issue seems the same as #5113.
I think this might be related to the recent change introduced in #4194. Briefly, the default aesthetic for the eCDF stat is
y = after_stat(y), and theycolumn gets back-transformed. Effectively, the system thinks the values that roll out of the stat are already in transformed space, whereas they're not.It should be relatively easy to fix by giving the computed variable a different name than
y.andrewgustar commentedon Dec 22, 2022
Thanks for the reply. I agree it is probably the same as #5113. I haven't found similar problems with other stats, so your explanation sounds promising. Hopefully a simple fix!