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
The following code worked with the current version 3.3.6 on CRAN but failed in the dev version (R 4.1.3 x64 on Windows 10). I am wondering what commit broke it? Thanks!
The domain (-Inf, Inf) gets the reverse transform and becomes (Inf, -Inf). oob_squish() doesn't internally sort the range argument, so the limits become c(-Inf,-Inf), which lead to one break: -Inf, which has a different length than labels.
Should in theory be fixed by sorting the domain before passing it to oob_squish() , e.g.:
limits<- oob_squish(limits, sort(domain))
Off topic: I think it would do no harm to suggest to the good people of the {scales} package that it might be a good idea to sort the range before squishing.
The following code worked with the current version 3.3.6 on CRAN but failed in the dev version (R 4.1.3 x64 on Windows 10). I am wondering what commit broke it? Thanks!
Plot output from version 3.3.6 on CRAN
Created on 2022-05-26 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: