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.


tsfknn documentation built on May 29, 2024, 8:35 a.m.