Plot method for objects of class "acf"
.
# S3 method for acf
plot(x, ci = 0.95, type = "h", xlab = "Lag", ylab = NULL,
ylim = NULL, main = NULL,
ci.col = "blue", ci.type = c("white", "ma"),
max.mfrow = 6, ask = Npgs > 1 && dev.interactive(),
mar = if(nser > 2) c(3,2,2,0.8) else par("mar"),
oma = if(nser > 2) c(1,1.2,1,1) else par("oma"),
mgp = if(nser > 2) c(1.5,0.6,0) else par("mgp"),
xpd = par("xpd"),
cex.main = if(nser > 2) 1 else par("cex.main"),
verbose = getOption("verbose"),
…)
an object of class "acf"
.
coverage probability for confidence interval. Plotting of
the confidence interval is suppressed if ci
is zero or
negative.
the type of plot to be drawn, default to histogram like vertical lines.
the x label of the plot.
the y label of the plot.
numeric of length 2 giving the y limits for the plot.
overall title for the plot.
colour to plot the confidence interval lines.
should the confidence limits assume a white noise
input or for lag
positive integer; for multivariate x
indicating how many rows and columns of plots should be put on one
page, using par(mfrow = c(m,m))
.
logical; if TRUE
, the user is asked before a new
page is started.
graphics parameters as in
par(*)
, by default adjusted to use smaller than
default margins for multivariate x
only.
logical. Should R report extra information on progress?
graphics parameters to be passed to the plotting routines.
acf
which calls plot.acf
by default.
# NOT RUN {
require(graphics)
# }
# NOT RUN {
<!-- %%-- FIXME: use less trivial data : -->
# }
# NOT RUN {
z4 <- ts(matrix(rnorm(400), 100, 4), start = c(1961, 1), frequency = 12)
z7 <- ts(matrix(rnorm(700), 100, 7), start = c(1961, 1), frequency = 12)
acf(z4)
acf(z7, max.mfrow = 7) # squeeze onto 1 page
acf(z7) # multi-page
# }
Run the code above in your browser using DataLab