Autocorrelation Plot
Plots current vs lagged residuals along with quadrants dividing these residuals about the value zero.
autocorPlot(fit, main = "Current vs Lagged residuals", ...)
fit
: output from the function 'lm()'.main
: the plot title.plot
function.Plots current vs lagged residuals along with quadrants dividing these residuals about the value zero.
autocor.plot
is deprecated inline with our new policy of removing periods from function names.
data(airpass.df) time = 1:144 airpass.fit = lm(passengers ~ time, data = airpass.df) autocorPlot(airpass.fit)