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")

ggiraphExtra documentation built on Oct. 23, 2020, 7:39 p.m.