traceplot: Trace, marginal density histogram, and autocorrelation plot...

View source: R/traceplot.R

traceplotR Documentation

Trace, marginal density histogram, and autocorrelation plot of MCMC draws.

Description

Trace, marginal density histogram, and autocorrelation plot of MCMC draws.

Usage

traceplot(x, ylab = NULL, log = FALSE)

Arguments

x

A vector of MCMC draws.

ylab

An optional y-axis label.

log

Logical scalar controlling whether the y-axis should be logged.

Value

A plot created using plot_grid showing the trace, marginal density histogram, and autocorrelation function of the MCMC draws in x.

Examples

x <- rnorm(1000)
traceplot(x)

bayefdr documentation built on Oct. 27, 2022, 1:05 a.m.