Plots mcmc
chains of a JAGSrun
object.
# S3 method for JAGSrun
plot(x, variables = NULL, trace = TRUE, density = TRUE,
smooth = TRUE, bwf, num, xlim, auto.layout = TRUE,
ask = interactive(), ...)
a JAGSrun
object.
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
.
plot trace of each variable.
plot density estimate of each variable.
draw a smooth line through trace plots.
bandwidth function for density plots.
if not all classes of a variable shall be plotted, a subset can be specified.
if not specified, the range of each variable over all classes is taken as default.
automatically generate output format.
prompt user before each page of plots.
further arguments for densityplot
.
Bettina Gruen
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
).
plot.mcmc
, BMMdiag
,
BMMposteriori