| ggplot_build.decorated_ggplot | R Documentation |
Substitutes expressions, titles, labels and aesthetics in decorated ggplots.
Default labels (mappings for x, y,)
will be replaced (if possible)
the first available of corresponding data attributes in
get_option('yamlet_decorated_ggplot_search', c('expression', 'title', 'label')).
Likewise, if mappings for
getOption('yamlet_decorated_ggplot_discrete',c('colour', 'fill', 'size', 'shape', 'linetype', 'linewidth', 'alpha'))
indicate columns that have these defined as attributes,
an attempt is made to add a corresponding discrete scale if
one does not exist already. Values are recycled if necessary
and are specific by ordinal position to the corresponding
level of the corresponding variable. Levels are defined
in increasing priority by
* sort(unique(x)) (if getOption('yamlet_decorated_ggplot_drop', TRUE)),
* any guide attribute,
* any factor levels,
* any codelist attribute, or
* any plotmath attribute.
## S3 method for class 'decorated_ggplot'
ggplot_build(plot, ...)
plot |
class 'decorated_ggplot' from |
... |
ignored |
see ggplot_build
Other decorated_ggplot:
data_context(),
data_context.ggplot(),
ggplot.decorated(),
mapframe(),
mapframe.default(),
mapframe.ggplot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.