Learn R Programming

useful (version 1.2.6)

autoplot.acf: autoplot.acf

Description

Plot acf objects

Usage

# S3 method for acf
autoplot(object, xlab = x, ylab = y,
  title = sprintf("%s Plot", y), ...)

Value

A ggplot object.

Arguments

object

An acf object.

xlab

X-axis label.

ylab

y-axis label.

title

Graph title.

...

Further arguments.

Author

Jared P. Lander

Details

Plot acf (and pacf) objects.

Examples

Run this code

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

Run the code above in your browser using DataLab