getMapping {moonBook} | 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)
getMapping(mapping,"colour")
getMapping(mapping,"x")
[Package moonBook version 0.3.1 Index]