label_style | R Documentation |
Similar to the style_*()
family of functions, but these functions return
a style_*()
function rather than performing the styling.
label_style_number(
digits = 0,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
scale = 1,
prefix = "",
suffix = "",
...
)
label_style_sigfig(
digits = 2,
scale = 1,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
prefix = "",
suffix = "",
...
)
label_style_pvalue(
digits = 1,
prepend_p = FALSE,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
...
)
label_style_ratio(
digits = 2,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
prefix = "",
suffix = "",
...
)
label_style_percent(
prefix = "",
suffix = "",
digits = 0,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
...
)
digits , big.mark , decimal.mark , scale , prepend_p , prefix , suffix , ... |
arguments
passed to the |
a function
Other style tools:
style_sigfig()
my_style <- label_style_number(digits = 1)
my_style(3.14)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.