Skip to contents

Customized geom

Usage

mc_obs_custom(plot, ...)

mc_model_custom(geom_plot, ..., n_sample = NA, draw = "collapse")

Arguments

...

Augments passed to geom_plot.

geom_plot

The geom plot to use. "geom_plot" should be a geom function like geoms in ggplots and should be able to have data and mapping augments. See examples for more details.

n_sample

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

draw

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