Learn R Programming

bayefdr (version 0.2.1)

traceplot: 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)

Value

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

Arguments

x

A vector of MCMC draws.

ylab

An optional y-axis label.

log

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

Examples

Run this code
x <- rnorm(1000)
traceplot(x)

Run the code above in your browser using DataLab