plot.foreccomb_res: Plot results from forecast combination model

Description Usage Arguments Value Author(s) See Also Examples

Description

Produces plots for the results of a forecast combination method. Either an actual vs. fitted plot (which = 1) or a barplot of the combination weights (which = 2).

Usage

1
2
## S3 method for class 'foreccomb_res'
plot(x, which = 1, ...)

Arguments

x

An object of class 'foreccomb_res'.

which

Type of plot: 1 = actual vs. fitted, 2 = combination weights.

...

Other arguments passing to plot.default.

Value

A plot for the foreccomb_res class.

Author(s)

Christoph E. Weiss and Gernot R. Roetzer

See Also

foreccomb, summary.foreccomb_res

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
obs <- rnorm(100)
preds <- matrix(rnorm(1000, 1), 100, 10)
train_o<-obs[1:80]
train_p<-preds[1:80,]
test_o<-obs[81:100]
test_p<-preds[81:100,]

data<-foreccomb(train_o, train_p, test_o, test_p)
fit <- comb_EIG1(data)
plot(fit)

ceweiss/GeomComb documentation built on May 13, 2019, 3:06 p.m.