gplot.acf: Plot autocorrelation function

Description Usage Arguments Value Examples

View source: R/plot.acf.R

Description

Attractive ggplot2 plot of acf output

Usage

1
2
gplot.acf(x, lag.max = NULL, type = c("correlation", "covariance"),
  demean = TRUE, ci = 0.95)

Arguments

x

a timeseries

lag.max

maximum time lag to display

type

one of "correlation" (default) or "covariance." The latter is not implemented.

demean

remove timeseries mean prior to computation of ACF

ci

confidence interval to display

Value

a ggplot2 object

Examples

1
2
x <- rnorm( 1000 )
plot.acf( x, lag.max = 20 )

jrevenaugh/TSAUMN documentation built on Nov. 8, 2019, 2:20 p.m.