Skip to content

Error: Smallest value of scales_cut must be zero #346

Description

@PaulC91

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions