Skip to contents

Histogram + interval plot for model predictions

Usage

mc_obs_histinterval(...)

mc_model_histinterval(..., n_sample = NA, draw = "collapse")

Arguments

...

Augments passed to ggdist::stat_histinterval.

n_sample

The number of sample of draws to show in histogram + interval plot. Default NA. If n_sample is NA, then mc_model_histinterval() will use all draws from posterior distribution.

draw

How to show draws? Default "collapse". If draw is "collapse", then all draws are collapsed together to show in one histogram + interval plot; if draw is "group", then each draw is shown in an individual histogram + interval plot; if draw is "hops", then mc_model_histinterval() will use animation to show each draw in one frame; if draw is an function, then all draws are aggregated by draw(). See examples for more details.