Learn R Programming

RMOPI (version 1.1)

ggacf: Plot the Acf Figure

Description

Plot the Acf figure with observations of a single variable beautifully.

Usage

ggacf(data, lag = 10)

Value

A ggplot figure of the acf

Arguments

data

vector of observations

lag

the maximum lag to calculate the acf

Examples

Run this code
swan <- rGarch(len = 180)
ggacf(swan^2, 20)

Run the code above in your browser using DataLab