View source: R/forecastFunctions.R
Plot | R Documentation |
thetaModel
objectsProduces a figure of the time series and the forecasts points from Optimised Theta Method.
## S3 method for class 'thetaModel' plot(x, ylim=NULL, xlim=NULL, ylab=NULL, xlab=NULL, main=NULL, ...)
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. |
main |
a main title for the plot. |
... |
Other plotting parameters passed to |
None. Function produces a plot
Jose A Fiorucci
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.