Learn R Programming

mcmcsae (version 0.6.0)

plot.draws: Trace, density and autocorrelation plots

Description

Trace, density and autocorrelation plots for selected components of a draws object.

Usage

# S3 method for draws
plot(x, vnames, nrows, ncols, ask = FALSE, ...)

Arguments

x

an object of class draws.

vnames

optional character vector to select a subset of parameters.

nrows

number of rows in plot layout.

ncols

number of columns in plot layout.

ask

ask before plotting the next page; default is FALSE.

...

arguments passed to density.

Examples

Run this code
# NOT RUN {
ex <- mcmcsae_example(n=50)
sampler <- create_sampler(ex$model, data=ex$dat)
sim <- MCMCsim(sampler, store.all=TRUE)
plot(sim, c("beta", "u", "u_sigma", "v_sigma"), ask=TRUE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab