lag.plot(x, lags=1, layout=c(1,1), head=<<see below>>, ask=F)
"Lagged Scatterplots :"
followed
by the name of the data object
x
is used.
TRUE
, the user will have to hit the return key between pages.
When the graphics device does not stop automatically
between pages, this allows the user to inspect each graph.
lags
lagged scatterplots are produced for each column of
x
.
For a univariate series,
x[t]
will be plotted against
x[t-k]
for
k=1,..., lags
, producing
lags
different scatterplots.
These are useful in exploring the autodependence structure of a time series.
While this function is allowed to work for irregular (
its
) time series, lag plots may be misleading for irregularly spaced time series.
lag.plot(hstart, 8, layout=c(3,3), head="Housing starts: lagged scatterplots") lag.plot(freeny.x, 3, c(2, 3), ask=T)