Learn R Programming

bayesmix (version 0.7-6)

plot.JAGSrun: Plot JAGSrun object

Description

Plots mcmc chains of a JAGSrun object.

Usage

# S3 method for JAGSrun
plot(x, variables = NULL, trace = TRUE, density = TRUE,
     smooth = TRUE, bwf, num, xlim, auto.layout = TRUE,
     ask = interactive(), ...)

Arguments

x

a JAGSrun object.

variables

names of variables which shall be plotted. Default are all names of results except those with a column dimension larger than the number of classes k.

trace

plot trace of each variable.

density

plot density estimate of each variable.

smooth

draw a smooth line through trace plots.

bwf

bandwidth function for density plots.

num

if not all classes of a variable shall be plotted, a subset can be specified.

xlim

if not specified, the range of each variable over all classes is taken as default.

auto.layout

automatically generate output format.

ask

prompt user before each page of plots.

...

further arguments for densityplot.

Author

Bettina Gruen

Details

Adapted from plot.mcmc.

Currently only implemented for JAGSrun objects with model of class BMMmodel. Otherwise the default plot method for the results of the JAGSrun object is called (plot.mcmc).

See Also

plot.mcmc, BMMdiag, BMMposteriori