Description Usage Arguments Examples
Turns a mapping that contains named and unnamed aesthetics into a vector with
all aesthetics named according to the argument structure of ggplot2::aes()
,
which is aes(x, y, ...)
. This may be used down-stream. E.g. for violin
plots, the aesthetics x and y are not interchangeable and it is unsafe to
assume that x is always the first aesthetic. Hence, by creating a named
vector, we can always refer to the aesthetics by name.
1 | set_aes(aes, names_data)
|
aes |
The aesthetics to map. |
names_data |
The names of all columns. |
1 | simplificar:::set_aes(c(y = "cyl", "vs"), names(mtcars))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.