R/plotting_functions.R
add_shaded_quantiles.Rd
Add a shaded region showing the min/max quantiles (usually +/-2.5%) to a
plot. The input, bayesian_summary, is the result of a call to
summarize_bayesian_inference
, which is a list-like object of class
bd_bayesian_summary with information on the quantiles of the density function
and growth rate. Typically, the min/max quantiles are 2.5% and 97.5%, but
this can be changed via the input lev in the call to
summarize_bayesian_inference
.
add_shaded_quantiles( bayesian_summary, col = grDevices::adjustcolor("grey", alpha.f = 0.5), ... )
bayesian_summary | A list-like object of class
|
---|---|
col | The color of the shaded region (default:
|
... | Additional parameters to pass to |