Learn R Programming

useful (version 1.2.6)

fortify.acf: fortify.acf

Description

Fortify an acf/pacf object

Usage

# S3 method for acf
fortify(model, data = NULL, ...)

Value

data.frame for plotting with ggplot.

Arguments

model

An acf object.

data

Not used. Just for consistency with the fortify method.

...

Other arguments

Author

Jared P. Lander

Details

Prepares acf (and pacf) objects for plotting with ggplot.

Examples

Run this code

fortify(acf(sunspot.year, plot=FALSE))
fortify(pacf(sunspot.year, plot=FALSE))

Run the code above in your browser using DataLab