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), lwl=1, bgl ='white', box.col=8, ...)
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)
width of lowess line; default is 1
background of the ACF legend; default is 'white'
'white'
color of the border of the ACF legend; default is 'gray(62)'
'gray(62)'
additional graphical arguments
You can find demonstrations of astsa capabilities at FUN WITH ASTSA.
The most recent version of the package can be found at https://github.com/nickpoison/astsa/.
In addition, the News and ChangeLog files are at https://github.com/nickpoison/astsa/blob/master/NEWS.md.
The webpages for the texts are https://www.stat.pitt.edu/stoffer/tsa4/ and https://www.stat.pitt.edu/stoffer/tsda/.
lag2.plot
# NOT RUN { lag1.plot(log(varve), max.lag=9) lag1.plot(soi, 12, cex=1, pch=19, col=astsa.col(4, .3), gg=TRUE, corr=FALSE) # }
Run the code above in your browser using DataLab