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 decorated_ggplot
ggplot_build(plot, ...)see ggplot_build
class 'decorated_ggplot' from ggplot.decorated
ignored
Other decorated_ggplot:
data_context(),
data_context.ggplot(),
ggplot.decorated(),
mapframe(),
mapframe.default(),
mapframe.ggplot()