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
Hey. I was just testing out the new scale_cut argument in version 1.2.0.
The documentation suggests a named vector such as c(a = 100, b = 1000) can be supplied, however this results in an error.
Adding a 0 to the vector solves the issue, but I thought I'd let you know in case you want to update the documentation or remove the requirement for a 0 to be included in the supplied vector.
Thanks!
scales::number(1000, scale_cut= c(a=100, b=1000))
#> Error in `scale_cut()`:#> ! Smallest value of `scales_cut` must be zeroscales::number(1000, scale_cut= c(0, a=100, b=1000))
#> [1] "1b"
Hey. I was just testing out the new
scale_cut
argument in version 1.2.0.The documentation suggests a named vector such as
c(a = 100, b = 1000)
can be supplied, however this results in an error.Adding a 0 to the vector solves the issue, but I thought I'd let you know in case you want to update the documentation or remove the requirement for a 0 to be included in the supplied vector.
Thanks!
Created on 2022-04-15 by the reprex package (v1.0.0)
The text was updated successfully, but these errors were encountered: