Skip to content

label_scientific digits #378

@AndreeWarby

Description

@AndreeWarby

Hi there,

When trying to use label_scientific and specifying the number of digits using digits = 2, it will not apply to numbers that are only showing 1 digit before the exponent. I also noted that in the examples provided when digits=3 is used, also doesn't appear to change anything from the example that doesn't include the digits argument (https://scales.r-lib.org/reference/label_scientific.html).

demo_continuous(c(1, 10))
demo_continuous(c(1, 10), labels = label_scientific())
demo_continuous(c(1, 10), labels = label_scientific(digits = 3))

Is there something I am missing or is there an issue with the digits argument?

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