Learn R Programming

astsa (version 1.1)

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)

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

References

http://www.stat.pitt.edu/stoffer/tsa3/

Examples

Run this code
lag1.plot(rnorm(100), 6)

Run the code above in your browser using DataLab