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.
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)
The code for the node. Rows are iterations. Columns are chains.
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.
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.
A function that takes an array of values and returns the prior density evaluated at those values.
A character value to use as labels in plots.
A logical value. Should a verical zero line be drawn on the density plot?
Can be missing, used by density
: (from
).
Can be missing, used by density
: (to
).
Should the prior be drawn?
Mainly called for the side effect of plotting. Also returns a vector of quantiles.