Learn R Programming

tsfknn (version 0.6.0)

plot.knnForecastRO: Plot a prediction of a test set

Description

It uses a test set generated with the function rolling_origin and plots its forecast.

Usage

# S3 method for 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.