| label_roche | R Documentation |
label_roche_pvalue() returns formatted p-values.
label_roche_percent() returns formatted percent values. This function only formats percentages between 0 and 1.
label_roche_ratio() returns formatted ratios with values below and above a threshold being returned as < 0.1 and > 999.9, for example, when digits=1.
label_roche_number() returns formatted numbers.
style_roche_pvalue(
x,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
...
)
label_roche_pvalue(
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
...
)
style_roche_percent(
x,
digits = 1,
prefix = "",
suffix = "",
scale = 100,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
...
)
label_roche_percent(
digits = 1,
suffix = "",
scale = 100,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
...
)
style_roche_ratio(
x,
digits = 2,
prefix = "",
suffix = "",
scale = 1,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
...
)
label_roche_ratio(
digits = 2,
prefix = "",
suffix = "",
scale = 1,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
...
)
style_roche_number(
x,
digits = 0,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
scale = 1,
prefix = "",
suffix = "",
na = "NE",
inf = "NE",
nan = "NE",
...
)
label_roche_number(
digits = 0,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
scale = 1,
prefix = "",
suffix = "",
na = "NE",
inf = "NE",
nan = "NE",
...
)
x |
( |
big.mark |
( |
decimal.mark |
( |
... |
Arguments passed on to |
digits |
(non-negative |
prefix |
( |
suffix |
( |
scale |
(scalar |
na, inf, nan |
( |
A character vector of rounded p-values
# p-value formatting
x <- c(0.0000001, 0.123456)
style_roche_pvalue(x)
label_roche_pvalue()(x)
# percent formatting
x <- c(0.0008, 0.9998)
style_roche_percent(x)
label_roche_percent()(x)
# ratio formatting
x <- c(0.0008, 0.8234, 2.123, 1000)
style_roche_ratio(x)
label_roche_ratio()(x)
# number formatting
x <- c(0.0008, 0.8234, 2.123, 1000, NA, Inf, -Inf)
style_roche_number(x)
label_roche_number()(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.