plot.xts: Plotting M Competition data with forecasts obtained from...

Description Usage Arguments Value Author(s) See Also Examples

Description

Functions to plot a time series from the M competition data sets, showing both the training and test sections of the series with forecasts obtained from difference forecasting methods .

Usage

1
2
## S3 method for class 'xts'
plot(x, si, method = NULL)

Arguments

x

The dataset of M-competition data in list format as M3Year, M3Quart, M3Month and M3Other

si

Name of a time series

method

Name or vector of names of forecasting methods

Value

plot.ts returns a dygraphs object. This function produces a time series plot of the selected series with forecast obtained from difference forecasting methods.

Author(s)

Andrey Davydenko, Maxim and Sai Van Cuong from Volgograd State Technical University

See Also

M3Year, M3Quart, M3Month, M3Other, M3Arima

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot.ts(M3Year, si = "Y1")
plot.ts(M3Year, si = "Y1", method = c("HOLT", "SINGLE", "NAIVE2"))

plot.ts(M3Quart, si = "Q4")
plot.ts(M3Quart, si = "Q4", method = c("HOLT", "SINGLE", "NAIVE2"))

plot.ts(M3Month, si = "M598")
plot.ts(M3Month, si = "M598", method = c("HOLT", "SINGLE", "NAIVE2"))

plot.ts(M3Other, si = "O15")
plot.ts(M3Other, si = "O15", method = c("HOLT", "SINGLE"))
plot.ts(M3Other, si = "O15", method = c("HOLT", "SINGLE", "NAIVE2"))

svcuonghvktqs/M3FORA documentation built on May 30, 2019, 8:27 a.m.