View source: R/label_number_abs.R
label_number_abs | R Documentation |
Label absolute values
label_number_abs(..., hide_below = NULL)
label_percent_abs(..., hide_below = NULL)
... |
arguments passed to |
hide_below |
if provided, values below |
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.
scales::label_number()
, scales::label_percent()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.