bayesplot v1.2.0
bayesplot v1.2.0 is now on CRAN and can be installed with install.packages("bayesplot").
There is a lot of new stuff in this release!
Release notes
(GitHub issue/PR numbers in parentheses)
Fixes
- Avoid error in some cases when
divergencesis specified in call to
mcmc_tracebut there are not actually any divergent transitions. - The
merge_chainsargument tomcmc_nuts_energynow defaults toFALSE.
New features in existing functions
- For
mcmc_*functions, transformations are recycled iftransformations
argument is specified as a single function rather than a named list. Thanks to @tklebel. (#64) - For
ppc_violin_groupedthere is now the option of showingyas a violin,
points, or both. Thanks to @silberzwiebel. (#74) color_scheme_getnow has an optional argumentifor selecting only a
subset of the colors.- New color schemes: darkgray, orange, viridis, viridisA, viridisB, viridisC.
The viridis schemes are better than the other schemes for trace plots (the
colors are very distinct from each other).
New functions
mcmc_pairs, which is essentially a ggplot2+grid implementation of rstan's
pairs.stanfitmethod. (#67)mcmc_hex, which is similar tomcmc_scatterbut usinggeom_hexinstead of
geom_point. This can be used to avoid overplotting. (#67)overlay_functionconvenience function. Example usage: add a Gaussian (or any
distribution) density curve to a plot made withmcmc_hist.mcmc_recover_scatterandmcmc_recover_hist, which are similar tomcmc_recover_intervalsand compare estimates to "true" values used to simulate data. (#81, #83)- New PPC category Discrete with functions:
ppc_rootogramfor use with models for count data. Thanks to @paul-buerkner. (#28)ppc_bars,ppc_bars_groupedfor use with models for ordinal, categorical
and multinomial data. Thanks to @silberzwiebel. (#73)
- New PPC category LOO (thanks to suggestions from @avehtari) with functions: