Learn R Programming

s20x (version 3.1-40)

autocorPlot: Autocorrelation Plot

Description

Plots current vs lagged residuals along with quadrants dividing these residuals about the value zero.

Usage

autocorPlot(fit, main = "Current vs Lagged residuals", ...)

Value

Plots current vs lagged residuals along with quadrants dividing these residuals about the value zero.

Arguments

fit

output from the function 'lm()'.

main

the plot title.

...

extra parameters to be passed to the plot function.

Examples

Run this code

data(airpass.df)
time = 1:144
airpass.fit = lm(passengers ~ time, data = airpass.df)
autocorPlot(airpass.fit)

Run the code above in your browser using DataLab