Learn R Programming

BRugs (version 0.8-1)

plotAutoC: Plot autocorrelation function for a scalar variable

Description

This function plots the autocorrelation function of a scalar variable.

Usage

plotAutoC(node, plot = TRUE, 
    colour = c("red", "blue", "green", "yellow", "black"), 
    lwd = 5, main = NULL, ...)

Arguments

node
Character, name of a scalar variable in the model.
plot
Logical, whether to plot the ACF or only return the values. If TRUE, values are returned invisibly.
colour
Colours used to represent different chains.
lwd, main
graphical parameters, see plot.default
...
Further graphical parameters as in par.

Value

  • An acf object. See acf for details.

Details

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

See Also

samplesAutoC, acf, BRugs, help.WinBUGS