powered by
extract variable name from mapping, aes
getMapping(mapping, varname)
aesthetic mapping
variable name to extract
variable name in character
# NOT RUN { require(ggplot2) mapping=aes(colour=sex) mapping=aes(x=c(Sepal.Length,Sepal.Width,Petal.Length,Petal.Width)) getMapping(mapping,"colour") getMapping(mapping,"x") # }
Run the code above in your browser using DataLab