getMapping {ggiraphExtra} | R Documentation |
extract variable name from mapping, aes
Description
extract variable name from mapping, aes
Usage
getMapping(mapping, varname)
Arguments
mapping |
aesthetic mapping |
varname |
variable name to extract |
Value
variable name in character
Examples
require(ggplot2)
mapping=aes(colour=sex)
mapping=aes(x=c(Sepal.Length,Sepal.Width,Petal.Length,Petal.Width))
getMapping(mapping,"colour")
getMapping(mapping,"x")
[Package ggiraphExtra version 0.3.0 Index]