aes_all: Given a character vector, create a set of identity mappings

Description Usage Arguments Examples

View source: R/aes.r

Description

Given a character vector, create a set of identity mappings

Usage

1
aes_all(vars)

Arguments

vars

vector of variable names

Examples

1
2
aes_all(names(mtcars))
aes_all(c("x", "y", "col", "pch"))

Example output

* mpg  -> mpg
* cyl  -> cyl
* disp -> disp
* hp   -> hp
* drat -> drat
* wt   -> wt
* qsec -> qsec
* vs   -> vs
* am   -> am
* gear -> gear
* carb -> carb
* x      -> x
* y      -> y
* colour -> col
* shape  -> pch

ggplot2 documentation built on May 30, 2017, 2:36 a.m.