Learn R Programming

BTSPAS (version 2024.5.9)

plot_posterior: Create posterior plot of a parameter with credible interval limits shown as vertical lines

Description

Create posterior plot of a parameter with credible interval limits shown as vertical lines

Usage

plot_posterior(mcmc.sample, alpha = 0.05, ncol = 1)

Value

Posterior plot(s) as an ggplot2 object

Arguments

mcmc.sample

Data frame with 2 columns. parm, and sample. A separate posterior plot is generated for each parameter.

alpha

Used to determine credible interval.

ncol

Number of columns in the plot (default=1).