rescale_center() and rescale_diverge() throw an assertion error if center is outside the range of the input scale. This requires manually changing the input range which is inconvenient.
rdeck::scale_linear(foo, limits = 0:1) |>
rdeck::rescale_center(-1) |>
generics::compile()
#> Error in `rescale_breaks()`:
#> ! Assertion failed: x >= range[1] & x <= range[2]
rdeck::scale_linear(foo, limits = 0:1) |>
rdeck::rescale_diverge(-1) |>
generics::compile()
#> Error in `rescale_breaks()`:
#> ! Assertion failed: x >= range[1] & x <= range[2]
rescale_center()
andrescale_diverge()
throw an assertion error ifcenter
is outside the range of the input scale. This requires manually changing the input range which is inconvenient.