getMapping: extract variable name from mapping, aes

Description Usage Arguments Value Examples

View source: R/ggRadar.R

Description

extract variable name from mapping, aes

Usage

1
getMapping(mapping, varname)

Arguments

mapping

aesthetic mapping

varname

variable name to extract

Value

variable name in character

Examples

1
2
3
4
5
require(ggplot2)
mapping=aes(colour=sex)
mapping=aes(x=c(Sepal.Length,Sepal.Width,Petal.Length,Petal.Width))
getMapping(mapping,"colour")
getMapping(mapping,"x")

cardiomoon/ggiraphExtra documentation built on Oct. 9, 2020, 4:16 a.m.