mapframe.default: Coerce ggplot Mapping to Dataframe

View source: R/mapframe.R

mapframe.defaultR Documentation

Coerce ggplot Mapping to Dataframe

Description

Coerces ggplot mapping to 'data.frame'.

Usage

## Default S3 method:
mapframe(x, ...)

Arguments

x

mapping

...

ignored

Details

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

Value

data.frame

See Also

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

Examples

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

yamlet documentation built on Jan. 10, 2026, 9:07 a.m.