plot.density: Plot density estimate or histogram of a scalar variable

Description Usage Arguments Details See Also

Description

This function plots a smoothed kernel density estimate for a scalar variable if it is continuous or a histogram if it is discrete.

Usage

1
2
plotDensity(node, plot=TRUE, main = NULL, xlab = "" , ylab = "", col = "red",
             ...)

Arguments

node

Character, name of a scalar variable in the model.

plot

Logical, whether to plot the trace or only return density estimates. If TRUE, density estimates are returned invisibly.

main, xlab, ylab, col

graphical parameters, see plot.default

...

Further graphical parameters as in par.

Details

Acts on a scalar variable. See the wrapper function samplesDensity for more details.

See Also

samplesDensity, BRugs, help.WinBUGS



Search within the BRugs package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.