plot.knnForecastRO: Plot a prediction of a test set

View source: R/rolling_origin.R

plot.knnForecastROR Documentation

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 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.


franciscomartinezdelrio/tsfknn documentation built on Jan. 31, 2024, 8 a.m.