plot.JAGSrun: Plot JAGSrun object

plot.JAGSrunR Documentation

Plot JAGSrun object

Description

Plots mcmc chains of a JAGSrun object.

Usage

## S3 method for class '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.

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).

Author(s)

Bettina Gruen

See Also

plot.mcmc, BMMdiag, BMMposteriori


bayesmix documentation built on April 14, 2023, 12:27 a.m.