powered by
thetaModel
Produces a figure of the time series and the forecasts points from Optimised Theta Method.
# S3 method for thetaModel plot(x, ylim=NULL, xlim=NULL, ylab=NULL, xlab=NULL, main=NULL, ...)
None. Function produces a plot
Object of class “thetaModel”.
the y limits of the plot.
the x limits of the plot.
a label for the y axis.
a label for the x axis.
a main title for the plot.
Other plotting parameters passed to par.
par
Jose A Fiorucci
dotm, forecTheta-package
dotm
forecTheta-package
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