check_plot: Generic function for a visual check of residuals in time...

View source: R/autoplot.R

check_plot.tsR Documentation

Generic function for a visual check of residuals in time series models.

Description

Generic function for a visual check of residuals in time series models, these methods are inspired in the check.residuals function provided by the forecast package.

Usage

## S3 method for class 'ts'
check_plot(y, model = " ", ...)

Arguments

y

a numeric vector or an object of the ts class containing a stationary time series.

model

A string with the model name.

...

Other plotting parameters to affect the plot.

Value

A graph object from ggplot2.

Author(s)

Asael Alonzo Matamoros.

See Also

check_residuals

Examples

y = arima.sim(100,model = list(ar = 0.3))
check_plot(y)



nortsTest documentation built on May 29, 2024, 10:05 a.m.