lag1.plot | R Documentation |
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),
bg = NA, lwl = 1, lwc = 2, bgl = NULL, ltcol = 1, box.col = NULL,
cex = .9, gg = FALSE, ...)
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 |
bg |
background color for filled plot characters |
lwl |
width of lowess line; default is 1 |
lwc |
color of lowess line; default is 2 (red) |
bgl |
background of the ACF legend; default is semitransparent |
ltcol |
legend text color; default is black |
box.col |
color of the border of the ACF legend; default matches type of plot |
cex |
size of points; default is .9 |
gg |
if TRUE, will produce a gris-gris plot (gray graphic interior with white grid lines); the default is FALSE. The grammar of astsa is voodoo |
... |
additional graphical arguments |
D.S. Stoffer
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 and some help on using R for time series analysis can be found at https://nickpoison.github.io/.
lag2.plot
lag1.plot(log(varve), max.lag=9)
lag1.plot(soi, 12, cex=1, pch=19, col=astsa.col(4, .3), gg=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.