plot.forecastML {forecastML} | R Documentation |
Plot an object of class 'forecastML'
Description
A forecast plot of h-step-ahead forecasts produced from multiple horizon-specific forecast models
using combine_forecasts()
.
Usage
## S3 method for class 'forecastML'
plot(
x,
data_actual = NULL,
actual_indices = NULL,
facet = ~model,
models = NULL,
group_filter = NULL,
drop_facet = FALSE,
...
)
Arguments
x |
An object of class 'forecastML' 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. A formula with any combination of |
models |
Optional. Filter results by user-defined model name from |
group_filter |
Optional. A string for filtering plot results for grouped time-series (e.g., |
drop_facet |
Optional. Boolean. If actuals are given when forecasting factors, the plot facet with 'actual' data can be dropped. |
... |
Not used. |
Value
Forecast plot of class 'ggplot'.