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 zero
scales::number(1000, scale_cut = c(0, a = 100, b = 1000))
#> [1] "1b"
Created on 2022-04-15 by the reprex package (v1.0.0)
Hey. I was just testing out the new
scale_cutargument 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)