plot.forecast_results {forecastML} | R Documentation |
Plot an object of class forecast_results
Description
A forecast plot for each horizon for each model in predict.forecast_model()
.
Usage
## S3 method for class 'forecast_results'
plot(
x,
data_actual = NULL,
actual_indices = NULL,
facet = horizon ~ model,
models = NULL,
horizons = NULL,
windows = NULL,
group_filter = NULL,
...
)
Arguments
x |
An object of class 'forecast_results' from |
data_actual |
A data.frame containing the target/outcome name and any grouping columns. The data can be historical actuals and/or holdout/test data. |
actual_indices |
Required if |
facet |
Optional. For numeric outcomes, a formula with any combination of |
models |
Optional. Filter results by user-defined model name from |
horizons |
Optional. Filter results by horizon. |
windows |
Optional. Filter results by validation window number. |
group_filter |
Optional. A string for filtering plot results for grouped time-series (e.g., |
... |
Not used. |
Value
Forecast plot of class 'ggplot'.