autoplot.grnnForecast {tsfgrnn}R Documentation

Create a ggplot object from a grnnForecast object

Description

It uses a grnnForecast object to create a ggplot object that plots a time series and its forecast using GRNN regression.

Usage

## S3 method for class 'grnnForecast'
autoplot(forecast, highlight = c("none",
  "points"))

Arguments

forecast

The grnnForecast object.

highlight

A string value indicating what elements should be highlighted. Possible values are "none" and "points".

Value

The ggplot object representing a plotting with the forecast.

Examples

pred <- grnn_forecasting(USAccDeaths, h = 12, lags = 1:12, sigma = 50)
library(ggplot2)
autoplot(pred)

[Package tsfgrnn version 0.1.0 Index]