plot.density.and.or.trace {BALD}R Documentation

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

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

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.


[Package BALD version 1.0.0-3 Index]