mc_model_point.RdPoints geom
mc_obs_point(...)
mc_model_point(..., n_sample = NA, group_sample = "collapse")The number of sample of draws to show.
Default NA. If n_sample is NA, then mc_model_point() will use all draws from
posterior distribution.
How to show draws? Default "collapse". "collapse and "group
are same for point geom, since point geom is just showing each data points.
If group_sample is "collapse" or "group",
then all draws are collapsed together and each point represents one data point;
if group_sample is "hops", then mc_model_point() 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_point(n_sample = 50) +
mc_obs_point() +
mc_condition_on(x = vars(disp))
#> Warning: No shared levels found between `names(values)` of the manual scale and the
#> data's fill values.