Learn R Programming

GGally (version 2.2.1)

eval_data_col: Evaluate data column

Description

Evaluate data column

Usage

eval_data_col(data, aes_col)

Value

Aes mapping with the x and y values switched

Arguments

data

data set to evaluate the data with

aes_col

Single value from an ggplot2::aes(...) object

Examples

Run this code
mapping <- ggplot2::aes(Petal.Length)
eval_data_col(iris, mapping$x)

Run the code above in your browser using DataLab