Learn R Programming

DescTools (version 0.99.6)

PlotACF: Combined Plot of a Time Series and it's Autocorrelation and Partial Autocorrelation

Description

Combined Plot of a Time Series and it's Autocorrelation and Partial Autocorrelation

Usage

PlotACF(series, lag.max = 10 * log10(length(series)), ...)
PlotGACF(series, lag.max=10*log10(length(series)), type="corr", ylab="Auto-Korr.", ...)

Arguments

series
univariate time series.
lag.max
integer. Defines the number of lags to be displayed. The default is 10 * log10(length(series)).
type
character string giving the type of acf to be computed. Allowed values are "correlation" (the default), "covariance" or "partial".
ylab
a title for the y axis: see title.
...
the dots are passed to the plot command.

Details

PlotACF plots a combination of the time series and its autocorrelation and partial autocorrelation. PlotGACF is used as subfunction to produce the acf- and pacf-plots.

See Also

ts

Examples

Run this code
PlotACF(AirPassengers)

Run the code above in your browser using DataLab