R: Formatter for plain labels discounting for SI multipliers

SI_pl_format {ggspectra} | R Documentation

## Formatter for plain labels discounting for SI multipliers

### Description

The labels generated represent numbers rescaled to compensate for a change in unit's by a factor of ten or by a power of ten.

### Usage

    SI_pl_format(exponent = 0, digits = 3, ...)

    SI_plain(x, exponent = 0, digits = 3, ...)

### Arguments

`exponent` | numeric Power of 10 to use as multiplier
`digits` | number of significant digits to show
`...` | other arguments passed on to `format`
`x` | a numeric vector to format

### Value

a function with single parameter x, a numeric vector, that returns a character vector

### Examples

    SI_pl_format()(1:10)
    SI_pl_format()(runif(10))
    SI_pl_format(exponent = 2)(runif(10))
    SI_plain(1:10)
    SI_plain(runif(10))
    SI_plain(runif(10), digits = 2)

[Package ggspectra version 0.2.3 Index]