Learn R Programming

yamlet (version 1.3.2)

mapframe.default: Coerce ggplot Mapping to Dataframe

Description

Coerces ggplot mapping to 'data.frame'.

Usage

# S3 method for default
mapframe(x, ...)

Value

data.frame

Arguments

x

mapping

...

ignored

Details

* 'aesthetic' captures each aesthetic label as a string. * 'map' captures each map (typ. a column name) as a string.

See Also

Other decorated_ggplot: data_context(), data_context.ggplot(), ggplot.decorated(), ggplot_build.decorated_ggplot(), mapframe(), mapframe.ggplot()

Examples

Run this code
library(ggplot2)
mapframe(ggplot(mapping = aes(conc, time, shape = factor(dose)))$mapping)

Run the code above in your browser using DataLab