plotDensity {BRugs} | R Documentation

## Plot density estimate or histogram of a scalar variable

### 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

    plotDensity(node, main = NULL, xlab = "" , ylab = "", col = "red", ...)

### Arguments

`node` | Character, name of a scalar variable in the model.
`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`

[Package BRugs version 0.3-2 Index]