It uses a test set generated with the function rolling_origin
and plots its forecast.
# S3 method for knnForecastRO
plot(x, h = NULL, ...)
the object obtained from a call to rolling_origin
.
an integer. The forecasting horizon. If NULL
, the maximum
forecasting horizon of all the test sets is used.
Other plotting parameters to affect the plot.