powered by
Produces a grid of scatterplots of one series versus another. The first named series is the one that gets lagged.
lag2.plot(series1, series2, max.lag = 0, corr = TRUE, smooth = TRUE)
first series (the one that gets lagged)
second series
maximum number of lags
if TRUE, shows the cross-correlation value in a legend
if TRUE, adds a lowess fit to each scatterplot
http://www.stat.pitt.edu/stoffer/tsa4/
# NOT RUN { lag2.plot(soi, rec, 8) # }
Run the code above in your browser using DataLab