Learn R Programming

useful (version 1.2.0)

plot.acf: plot.acf

Description

Plot acf objects

Usage

## S3 method for class 'acf':
plot(x, xlab = x, ylab = y, title = sprintf("\%s Plot", y),
  ...)

Arguments

x
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
plot(acf(sunspot.year, plot=FALSE))
plot(pacf(sunspot.year, plot=FALSE))

Run the code above in your browser using DataLab