Plotting for Bayesian Models

Plotting functions for posterior analysis, model checking, and MCMC diagnostics. The package is designed not only to provide convenient functionality for users, but also a common set of functions that can be easily used by developers working on a variety of R packages for Bayesian modeling, particularly (but not exclusively) packages interfacing with Stan.


News

bayesplot 1.1.0

(GitHub issue/PR numbers in parentheses)

  • Images in vignettes should now render properly using png device. Thanks to TJ Mahr. (#51)
  • xaxis_title(FALSE) and yaxis_title(FALSE) now set axis titles to NULL rather than changing theme elements to element_blank(). This makes it easier to add axis titles to plots that don’t have them by default. Thanks to Bill Harris. (#53)
  • Introduce ppc_error_hist_grouped for plotting predictive errors by level of a grouping variable. (#40)
  • Introduce mcmc_recover_intervals for comparing MCMC estimates to "true" parameter values used to simulate the data. (#56)
  • Add argument divergences to mcmc_trace function. For models fit using HMC/NUTS this can be used to display divergences as a rug at the bottom of the trace plot. (#42)
  • Introduce bayesplot_grid function for juxtaposing plots and enforcing shared axis limits. (#59)
  • The stat argument for all ppc_stat_* functions now accepts a function instead of only the name of a function. (#31)

bayesplot 1.0.0

  • Initial CRAN release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("bayesplot")

1.1.0 by Jonah Gabry, 2 months ago


http://mc-stan.org/, https://groups.google.com/forum/#!forum/stan-users


Report a bug at https://github.com/stan-dev/bayesplot/issues/


Browse source code at https://github.com/cran/bayesplot


Authors: Jonah Gabry [aut, cre], Paul-Christian Buerkner [ctb]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports dplyr, ggplot2, reshape2, stats, utils

Suggests arm, gridExtra, knitr, rmarkdown, rstan, rstanarm, rstantools, shinystan, testthat


Imported by brms, rstanarm, shinystan.

Suggested by CopulaDTA, rstan, rstantools.


See at CRAN