plot.imapa: Plot and summarise iMAPA forecasts

View source: R/imapa.R

plot.imapaR Documentation

Plot and summarise iMAPA forecasts

Description

Plot and summarise the forecasts produced by imapa.

Usage

## S3 method for class 'imapa'
plot(x, view = 1, legend = TRUE, ...)

## S3 method for class 'imapa'
print(x, ...)

## S3 method for class 'imapa'
coef(object, ...)

## S3 method for class 'imapa'
summary(object, ...)

## S3 method for class 'summary.imapa'
print(x, ...)

Arguments

x, object

An object of class imapa.

view

The plot to produce:

  • 1 or "period": time series and combined forecast;

  • 2 or "levels": time series and the forecasts of all aggregation levels;

  • 3 or "selection": summary of the models selected;

  • 4 or "selection.detail": detailed plot of the models selected, with the classification of the series at each aggregation level;

  • "leadtime": the lead time view, as described in plot.tsint. If the forecasts from each in-sample origin were not calculated by imapa, they are calculated here, which can take some time.

legend

If TRUE, a legend is added when it is needed.

...

Additional arguments passed to plot, for example main. For print and summary, unused.

Value

plot has no return value. summary returns an object of class summary.imapa, and coef returns the model.fit of each aggregation level.

Author(s)

Nikolaos Kourentzes, nikolaos@kourentzes.com

See Also

imapa.

Examples

fit <- imapa(ts.data1, h=3, maximumAL=12)
fit
summary(fit)
plot(fit)
plot(fit, view="levels")
plot(fit, view="selection")
plot(fit, view="leadtime")


tsintermittent documentation built on Nov. 14, 2026, 5:06 p.m.