powered by
Produces a grid of scatterplots of a series versus lagged values of the series.
lag1.plot(series, max.lag = 1, corr = TRUE, smooth = TRUE, col = gray(.1), ...)
the data
maximum lag
if TRUE, shows the autocorrelation value in a legend
if TRUE, adds a lowess fit to each scatterplot
color of points; default is gray(.1)
gray(.1)
additional graphical arguments
http://www.stat.pitt.edu/stoffer/tsa4/ and http://www.stat.pitt.edu/stoffer/tsda/
lag2.plot
# NOT RUN { lag1.plot(soi, 9, col=4) lag1.plot(soi, max.lag=4, pch=20, cex=1.5, col=rgb(0,.5,1,.5)) # }
Run the code above in your browser using DataLab