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
I am not sure which package updates have caused this breaking cahnge, but I recently noticed some code I wrote a few months ago is now broken due to some unexpected behavior of stat_interval() if there is a log scale axis. For some reason making the axis scale logarithmic causes the computation of stat_interval() to fail, somewhere along the line a non-numeric argument is passed to log().
Here is a reprex I made (edited the post to make the reprex a lot more minimal). Thanks in advance for your help (and for the great packages!)
Thanks for catching this and for the straightforward reprex! Made it easy to isolate the bug. It should be fixed on master now; if you install the github version via remotes::install_github("mjskay/ggdist") you can double-check to make sure the fix works for you.
Nah, it was entirely my fault :). In ggdist 3.2.0 I introduced a feature that shares some computation across slab and interval sub-geometries so that (e.g.) you can use .width and level aesthetics in after_stat() in slabs. This introduced a bug where if the slab is not present at all (as in stat_interval()) if the scale transformation function doesn't like NULLs it will fail.
I am not sure which package updates have caused this breaking cahnge, but I recently noticed some code I wrote a few months ago is now broken due to some unexpected behavior of
stat_interval()
if there is a log scale axis. For some reason making the axis scale logarithmic causes the computation ofstat_interval()
to fail, somewhere along the line a non-numeric argument is passed tolog()
.Here is a reprex I made (edited the post to make the reprex a lot more minimal). Thanks in advance for your help (and for the great packages!)
The warning returned by
... + scale_x_log10()
:Session info:
The text was updated successfully, but these errors were encountered: