auto_name | R Documentation |
Nearly identical to rlang::exprs_auto_name()
, but rlang::as_name()
is used instead of rlang::as_label()
. For String items the string will
returned without wrapping in double quotes. The naming of functions and
formulas is not optimal, it is better to manually name theme.
auto_name(exprs)
exprs |
A list of expressions. |
A named list of expressions
funs <- list(
"mean",
function(x) stats::quantile(x, probs = 0.95),
~ stats::quantile(., probs = 0.95),
q95 = function(x) stats::quantile(x, probs = 0.95)
)
auto_name(funs)
# exprs_autoname adds double quotes to strings
rlang::exprs_auto_name(funs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.