Learn R Programming

ggfortify (version 0.4.1)

gglagplot: Plot time series against lagged versions of themselves

Description

Plot time series against lagged versions of themselves

Usage

gglagplot(ts, lags = 1, nrow = NULL, ncol = NULL)

Arguments

ts

stats::ts instance

lags

Number of lag plots desired

nrow

Number of plot rows

ncol

Number of plot columns

Value

ggplot

Examples

Run this code
# NOT RUN {
gglagplot(AirPassengers)
# }

Run the code above in your browser using DataLab