plot-dot-density-dot-and-dot-or-dot-trace: A rather generic function to plot diagnostics for a single...

Description Usage Arguments Value

Description

A rather generic function to plot diagnostics for a single node (a one-dimensional node or a single slot from a multi-dimensional node). Intended for internal use only.

Usage

1
2
3
4
5
6
7
8
9
plot.density.and.or.trace( coda,
plotDensity,
plotTrace,
d.prior,
nice.parameter.name,
zero.line=FALSE,
lower.bound=NA,
upper.bound=NA,
draw.prior=TRUE)

Arguments

coda

The code for the node. Rows are iterations. Columns are chains.

plotDensity

A logical value. If TRUE, the density is plotted. If plotTrace is also TRUE, then two plots are generated. If they are both FALSE, only the statistics are returned.

plotTrace

A logical value. If TRUE, the trace is plotted. If plotDensity is also TRUE, then two plots are generated. If they are both FALSE, only the statistics are returned.

d.prior

A function that takes an array of values and returns the prior density evaluated at those values.

nice.parameter.name

A character value to use as labels in plots.

zero.line

A logical value. Should a verical zero line be drawn on the density plot?

lower.bound

Can be missing, used by density: (from).

upper.bound

Can be missing, used by density: (to).

draw.prior

Should the prior be drawn?

Value

Mainly called for the side effect of plotting. Also returns a vector of quantiles.


BALD documentation built on May 2, 2019, 6:51 a.m.