plot.knnForecastRO function

Plot a prediction of a test set

Plot a prediction of a test set

It uses a test set generated with the function rolling_origin

and plots its forecast.

## S3 method for class 'knnForecastRO' plot(x, h = NULL, ...)

Arguments

  • x: the object obtained from a call to rolling_origin.
  • h: 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.