Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

forecTheta (version 2.0)

plot.thetaModel: Plot forecasts points and prediction intervals for thetaModel objects

Description

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

Usage

## S3 method for class 'thetaModel':
plot(x, ...)

Arguments

x
Object of class thetaModel.
...
Other plotting parameters passed to par.

Value

  • None. Function produces a plot

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