autoplot.grnnForecast | R Documentation |
It uses an object of class grnnForecast
to create a ggplot
object that
plots a time series and its forecast using GRNN regression.
## S3 method for class 'grnnForecast'
autoplot(object, ...)
object |
An object of class |
... |
additional parameter, see details. |
Commonly used parameters are:
highlight
. A character string indicating what elements should be highlighted. Possible values are
"none"
and "points"
. The default value is "none"
.
The ggplot
object representing a plotting with the forecast.
pred <- grnn_forecasting(USAccDeaths, h = 12, lags = 1:12, sigma = 50)
library(ggplot2)
autoplot(pred)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.