Learn R Programming

useful (version 1.2.5)

autoplot.acf: autoplot.acf

Description

Plot acf objects

Usage

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

Arguments

object

An acf object.

xlab

X-axis label.

ylab

y-axis label.

title

Graph title.

Further arguments.

Value

A ggplot object.

Details

Plot acf (and pacf) objects.

Examples

Run this code
# NOT RUN {
autoplot(acf(sunspot.year, plot=FALSE))
autoplot(pacf(sunspot.year, plot=FALSE))

# }

Run the code above in your browser using DataLab