Stores title/subtitle/caption/tag templates on xpdb that
apply_default_labs() will use to fill in (or overwrite) labels on any
plot built from this xpdb, when xpdb is passed to it. Values may
contain the same @keyword placeholders understood by
xpose::parse_title() (e.g. "@nind", "@nobs", "@run"), since
they are resolved the same way.
Arguments
- xpdb
<
xpose_data> or <xp_xtras> object- ...
<
dynamic-dots> One or more oftitle,subtitle,caption,tag, given as character strings
See also
set_xtras_options() for the session-option equivalent
(xpose.xtras.default_labs), and get_xtras_option() to check which
one is currently dominant.
Examples
xpdb_x <- set_default_labs(xpdb_x, caption = "@nobs observations in @nind individuals")
p <- xpose::dv_vs_ipred(xpdb_x)
#> Using data from $prob no.1
#> Filtering data by EVID == 0
apply_default_labs(p, xpdb = xpdb_x)
#> `geom_smooth()` using formula = 'y ~ x'
