fortify.acf: Convert 'stats::acf' to 'data.frame'

View source: R/fortify_stats.R

fortify.acfR Documentation

Convert stats::acf to data.frame

Description

Convert stats::acf to data.frame

Usage

## S3 method for class 'acf'
fortify(
  model,
  data = NULL,
  conf.int = TRUE,
  conf.int.value = 0.95,
  conf.int.type = "white",
  ...
)

Arguments

model

stats::acf instance

data

original dataset, if needed

conf.int

Logical flag indicating whether to attach confidence intervals

conf.int.value

Coverage probability for confidence interval

conf.int.type

Type of confidence interval, 'white' for white noise or 'ma' MA(k-1) model

...

other arguments passed to methods

Value

data.frame

Examples

## Not run: 
fortify(stats::acf(AirPassengers))
fortify(stats::pacf(AirPassengers))
fortify(stats::ccf(AirPassengers, AirPassengers))

fortify(stats::acf(AirPassengers), conf.int = TRUE)

## End(Not run)

ggfortify documentation built on May 29, 2024, 7:19 a.m.