xyplot.acf: Plot Autocovariance and Autocorrelation Functions

View source: R/xyplot.acf.R

xyplot.acfR Documentation

Plot Autocovariance and Autocorrelation Functions

Description

This is a version of stats::plot.acf().

Usage

## S3 method for class 'acf'
xyplot(
  x,
  data = NULL,
  ci = 0.95,
  ci_type = c("white", "ma"),
  ci_col = trellis.par.get("add.line")$col,
  ci_lty = 2,
  ...
)

Arguments

x

An 'acf' object.

data

Ignored

ci

Confidence level.

ci_type

Type of confidence level.

ci_col

Line color for the confidence levels.

ci_lty

Line type for the confidence levels.

...

Arguments passed on to lattice::xyplot().

Value

Returns and plots a trellis object.

Author(s)

Original by Brian Ripley.

See Also

lattice::xyplot(), stats::plot.acf(), stats::acf().

Examples

z <- ts(matrix(rnorm(400), 100, 4), start = c(1961, 1), frequency = 12)
xyplot(acf(z))

tactile documentation built on May 31, 2023, 9:47 p.m.