| mapframe.ggplot | R Documentation |
Coerces ggplot mappings to 'data.frame'.
## S3 method for class 'ggplot'
mapframe(x, ...)
x |
ggplot |
... |
ignored |
* 'aesthetic' captures each aesthetic label as a string. * 'map' captures each map (typ. a column name) as a string. * 'layer' is zero for the default mapping, else the layer number. * 'data' is NA for default data if missing. Else zero for x$data, zero for layers with no data, and layer number for layers with data.
data.frame
Other decorated_ggplot:
data_context(),
data_context.ggplot(),
ggplot.decorated(),
ggplot_build.decorated_ggplot(),
mapframe(),
mapframe.default()
library(ggplot2)
mapframe(ggplot(mapping = aes(conc, time, shape = factor(dose))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.