forecTheta (version 2.2)

Plot: Plot forecasts points and prediction intervals for thetaModel objects

Description

Produces a figure of the time series and the forecasts points from Optimised Theta Method.

Usage

# S3 method for thetaModel
plot(x, ylim=NULL, xlim=NULL, ylab=NULL, xlab=NULL, ...)

Value

None. Function produces a plot

Arguments

x

Object of class “thetaModel”.

ylim

the y limits of the plot.

xlim

the x limits of the plot.

ylab

a label for the y axis.

xlab

a label for the x axis.

...

Other plotting parameters passed to par.

Author

Jose A Fiorucci

See Also

dotm, forecTheta-package

Examples

Run this code
y1 = 2+ 0.15*(1:20) + rnorm(20,2)
y2 = y1[20]+ 0.3*(1:30) + rnorm(30,2)
y =  as.ts(c(y1,y2))
out <- dotm(y, h=10)
plot(out)

Run the code above in your browser using DataLab