astsa (version 1.9)

lag1.plot: Lag Plot - one time series

Description

Produces a grid of scatterplots of a series versus lagged values of the series.

Usage

lag1.plot(series, max.lag = 1, corr = TRUE, smooth = TRUE, col = gray(.1))

Arguments

series

the data

max.lag

maximum lag

corr

if TRUE, shows the autocorrelation value in a legend

smooth

if TRUE, adds a lowess fit to each scatterplot

col

color of points; default is gray(.1)

References

http://www.stat.pitt.edu/stoffer/tsa4/ and http://www.stat.pitt.edu/stoffer/tsda/

Examples

Run this code
# NOT RUN {
lag1.plot(soi, 9, col=4)
# }

Run the code above in your browser using DataCamp Workspace