Learn R Programming

bayesplot (version 1.12.0)

Plotting for Bayesian Models

Description

Plotting functions for posterior analysis, MCMC diagnostics, prior and posterior predictive checks, and other visualizations to support the applied Bayesian workflow advocated in Gabry, Simpson, Vehtari, Betancourt, and Gelman (2019) . 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'.

Copy Link

Version

Install

install.packages('bayesplot')

Monthly Downloads

31,914

Version

1.12.0

License

GPL (>= 3)

Maintainer

Jonah Gabry

Last Published

April 10th, 2025

Functions in bayesplot (1.12.0)

PPC-test-statistics

PPC test statistics
PPC-censoring

PPC censoring
PPC-distributions

PPC distributions
PPC-discrete

PPCs for discrete outcomes
PPC-intervals

PPC intervals
PPD-distributions

PPD distributions
PPC-errors

PPC errors
PPC-loo

LOO predictive checks
PPC-overview

Graphical posterior predictive checking
PPC-scatterplots

PPC scatterplots
PPD-test-statistics

PPD test statistics
bayesplot_grid

Arrange plots in a grid
available_ppc

Get or view the names of available plotting or data functions
bayesplot-extractors

Extract quantities needed for plotting from model objects
PPD-intervals

PPD intervals
bayesplot-colors

Set, get, or view bayesplot color schemes
bayesplot-package

bayesplot: Plotting for Bayesian Models
bayesplot-helpers

Convenience functions for adding or changing plot details
PPD-overview

Plots of posterior or prior predictive distributions
bayesplot_theme_get

Get, set, and modify the active bayesplot theme
theme_default

Default bayesplot plotting theme
reexports

Objects exported from other packages
tidy-params

Tidy parameter selection
example-data

Example draws to use in demonstrations and tests
pp_check

Posterior (or prior) predictive checks (S3 generic and default method)
MCMC-nuts

Diagnostic plots for the No-U-Turn-Sampler (NUTS)
MCMC-intervals

Plot interval estimates from MCMC draws
MCMC-parcoord

Parallel coordinates plot of MCMC draws
MCMC-recover

Compare MCMC estimates to "true" parameter values
MCMC-diagnostics

General MCMC diagnostics
MCMC-traces

Trace and rank plots of MCMC draws
MCMC-overview

Plots for Markov chain Monte Carlo simulations
MCMC-combos

Combination plots
MCMC-scatterplots

Scatterplots of MCMC draws
MCMC-distributions

Histograms and kernel density plots of MCMC draws