label_number_abs {ggstats} | R Documentation |
Label absolute values
Description
Label absolute values
Usage
label_number_abs(..., hide_below = NULL)
label_percent_abs(..., hide_below = NULL)
Arguments
... |
arguments passed to |
hide_below |
if provided, values below |
Value
A "labelling" function, , i.e. a function that takes a vector and returns a character vector of same length giving a label for each input value.
See Also
scales::label_number()
, scales::label_percent()
Examples
x <- c(-0.2, -.05, 0, .07, .25, .66)
scales::label_number()(x)
label_number_abs()(x)
scales::label_percent()(x)
label_percent_abs()(x)
label_percent_abs(hide_below = .1)(x)
[Package ggstats version 0.6.0 Index]