forecastML (version 0.5.0)

plot.validation_error: Plot validation dataset forecast error

Description

Plot forecast error at various levels of aggregation across validation datasets.

Usage

# S3 method for validation_error
plot(x, data_results, type = c("time",
  "horizon", "global"), models = NULL, horizons = NULL,
  windows = NULL, group_filter = NULL, ...)

Arguments

x

An object of class 'validation_error' from return_error().

data_results

An object of class 'training_results' from predict.forecast_model().

type

Select plot type; type = "time" is the default plot.

models

Optional. A vector of user-defined model names from train_model() to filter results.

horizons

Optional. A numeric vector to filter results by horizon.

windows

Optional. A numeric vector to filter results by validation window number.

group_filter

A string for filtering plot results for grouped time-series (e.g., "group_col_1 == 'A'").

...

Not used.

Value

Forecast error plots of class 'ggplot'.