plotDensity | R Documentation |
This function plots a smoothed kernel density estimate for a scalar variable if it is continuous or a histogram if it is discrete.
plotDensity(node, plot=TRUE, main = NULL, xlab = "" , ylab = "", col = "red",
...)
node |
Character, name of a scalar variable in the model. |
plot |
Logical, whether to plot the trace or only return density estimates.
If |
main , xlab , ylab , col |
graphical parameters, see |
... |
Further graphical parameters as in |
Acts on a scalar variable. See the wrapper function samplesDensity
for more details.
samplesDensity
, BRugs
, help.WinBUGS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.