powered by
corgram calculates the values of a correlogram (autocorrelation function or ACF) and plots it.
corgram
corgram( y, wt = 1, maxlag = NULL, partial = FALSE, add = FALSE, lty = 1, xlim = NULL, ylim = NULL, xlab = NULL, ylab = NULL, main = NULL, ... )
corgram returns a two-column matrix containing the (partial) correlogram coordinates.
A time series vector.
Indicator vector with zeros for values to be ignored.
Maximum number of lags for which the correlation is to be calculated.
If TRUE, the partial autocorrelation function (PACF) is plotted.
If TRUE, adds a new correlogram to an existing plot.
Plotting parameters
J.K. Lindsey
y <- rnorm(100) corgram(y) corgram(y, partial=TRUE)
Run the code above in your browser using DataLab