autoplot.grnnForecast {tsfgrnn} | R Documentation |
It uses a grnnForecast object to create a ggplot object that plots a time series and its forecast using GRNN regression.
## S3 method for class 'grnnForecast' autoplot(forecast, highlight = c("none", "points"))
forecast |
The grnnForecast object. |
highlight |
A string value indicating what elements should be highlighted. Possible values are "none" and "points". |
The ggplot object representing a plotting with the forecast.
pred <- grnn_forecasting(USAccDeaths, h = 12, lags = 1:12, sigma = 50) library(ggplot2) autoplot(pred)