Description Usage Arguments Value Examples
extract variable name from mapping, aes
1 | getMapping(mapping, varname)
|
mapping |
aesthetic mapping |
varname |
variable name to extract |
variable name in character
1 2 3 4 | require(ggplot2)
mapping=aes(colour=sex)
getMapping(mapping,"colour")
getMapping(mapping,"x")
|
Loading required package: ggplot2
[1] "sex"
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.