mc_model_auto.Rd
Recommend a geom
mc_obs_auto(...)
mc_model_auto(..., n_sample = NA, group_sample = NULL)
Augments passed to geom functions (e.g. ggplot2::geom_point
,
ggplot2::geom_line
, and
ggplot2::geom_tile
).
The number of sample of draws to show.
Default NA
. If n_sample
is NA
, then mc_model_auto()
will use all draws from
posterior distribution.
How to show draws? Default "collapse"
. If group_sample
is "collapse"
,
then all draws are collapsed together to show in one geom; if group_sample
is "group"
, then each draw is shown in an individual geom; if
group_sample
is "hops"
, then mc_model_auto()
will use animation to show each
draw in one frame; if group_sample
is an function, then all draws are aggregated
by group_sample()
. See examples for more details.
library(ggplot2)
mcplot(mpg_model) +
mc_model_auto(n_sample = 50) +
mc_obs_auto()
#> Warning: No shared levels found between `names(values)` of the manual scale and the
#> data's fill values.
mcplot(mpg_model) +
mc_model_auto(n_sample = 50) +
mc_obs_auto() +
mc_condition_on(x = vars(disp))
#> Warning: No shared levels found between `names(values)` of the manual scale and the
#> data's fill values.
mcplot(mpg_model) +
mc_model_auto(n_sample = 50) +
mc_obs_auto() +
mc_condition_on(x = vars(vs))
#> Warning: No shared levels found between `names(values)` of the manual scale and the
#> data's fill values.