Horizontal reference lines on y axis

mc_obs_reference_line(...)

mc_model_reference_line(..., n_sample = NA, group_sample = "collapse")

Arguments

...

Augments passed to ggplot2::geom_hline.

n_sample

The number of sample of draws to show. Default NA. If n_sample is NA, then mc_model_tile() will use all draws from posterior distribution.

group_sample

How to show draws? Default "collapse". If group_sample is "collapse", then all draws are collapsed together and are shown in one reference line; if "draw" is "group", then only one draw is shown by reference line; if group_sample is "hops", then mc_model_reference_line() 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.

Examples

library(ggplot2)

mcplot(mpg_model) +
  mc_observation_transformation(mean) +
  mc_model_slab(n_sample = 50) +
  mc_obs_reference_line()