Line + multiple-ribbon plot for model predictions
mc_model_lineribbon.RdLine + multiple-ribbon plot for model predictions
Usage
mc_obs_lineribbon(..., scale_fill = ggplot2::scale_fill_brewer(palette = 1))
mc_model_lineribbon(
...,
scale_fill = ggplot2::scale_fill_brewer(palette = 7),
n_sample = NA,
draw = "collapse"
)Arguments
- ...
- scale_fill
The scale_fill_* layer for lineribbon. Default to be
ggplot2::scale_fill_brewer().- n_sample
The number of sample of draws to show in lineribbon plot. Default
NA. Ifn_sampleisNA, thenmc_model_lineribbon()will use all draws from posterior distribution.- draw
How to show draws? Default
"collapse". Ifdrawis"collapse", then all draws are collapsed together to show in one lineribbon plot; ifdrawis"group", then each draw is shown in an individual lineribbon plot; ifdrawis"hops", thenmc_model_lineribbon()will use animation to show each draw in one frame; ifdrawis an function, then all draws are aggregated bydraw(). See examples for more details.