Produces a matrix of scatterplots with the time series (or a histogram) plotted on the diagonal.
tspairs(x, main = NA, pt.col = astsa.col(4, 0.6), pt.size = 1.1, lab.size = 1.25,
title.size = 1.5, scale = 1, corr = TRUE, smooth = TRUE, lwl = 1, lwc = 2,
gg = FALSE, hist.diag = TRUE, col.diag = 4, location='topright', ...)Returns a matrix of scatterplots with time plots or histograms on the diagonal.
multiple time series; use ts.intersect to include lagged values.
title (default is no title).
point color.
point size.
label size.
title size.
multiplier for the overall character expansion (cex).
if TRUE (default), the correlations are shown in the scatterplots.
if TRUE (default), a lowess fit is displayed in the scatterplots.
width of the lowess line.
color of the lowess line.
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.
if TRUE (default), will plot histograms on the diagonal; if FALSE, time plots of the series are displayed instead.
color for the diagonal plots.
the location of the ACF legend with options "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright" (the default), "right" and "center".
additional graphic parameters.
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/.
lag1.plot, lag2.plot
tspairs(diff(log(econ5))[,1:3], col.diag=6, hist=FALSE, pt.size=1.5, lwl=2, gg=TRUE)
tspairs(ts.intersect(MEI, MEI2), location='top')
Run the code above in your browser using DataLab