plot2acf | R Documentation |
Plots the ACF of two series at the same lags
plot2acf(y1, y2, lag.max = 40, main = c("", ""))
y1 |
A time series object |
y2 |
A time series object |
lag.max |
An integer, the value of the maximum lag |
main |
A vector of character, the title of the plot |
We keep the same scale for the two graphs
no value
Yves Aragon and Thibault Laurent
data(nottem)
set.seed(2561)
innov1 <- rnorm(290,sd=4.18)
y <- arima.sim(list(order = c(12, 0, 1), ma = -.7, ar = c(rep(0, 11), .9)),
innov = innov1, n.start = 50, n = 240) + 50
plot2acf(nottem, y, main = c("ACF nottem", "ACF SAR"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.