Interval plot for model predictions
mc_model_interval.Rd
Interval plot for model predictions
Usage
mc_obs_interval(..., scale_color = ggplot2::scale_color_brewer(palette = 1))
mc_model_interval(
...,
scale_color = ggplot2::scale_color_brewer(palette = 7),
n_sample = NA,
draw = "collapse"
)
Arguments
- ...
- scale_color
The scale_color_* layer for interval. Default to be
ggplot2::scale_color_brewer()
.- n_sample
The number of sample of draws to show in interval plot. Default
NA
. Ifn_sample
isNA
, thenmc_model_interval()
will use all draws from posterior distribution.- draw
How to show draws? Default
"collapse"
. Ifdraw
is"collapse"
, then all draws are collapsed together to show in one interval plot; ifdraw
is"group"
, then each draw is shown in an individual interval plot; ifdraw
is"hops"
, thenmc_model_interval()
will use animation to show each draw in one frame; ifdraw
is an function, then all draws are aggregated bydraw()
. See examples for more details.