Description Usage Arguments Value Author(s) References See Also Examples
Plots a time series with forecasts and prediction intervals.
1 2 3 4 5 6 7 |
x |
Forecast object produced by |
include |
number of values from time series to include in plot |
plot.conf |
Logical flag indicating whether to plot prediction intervals. |
shaded |
Logical flag indicating whether prediction intervals should be shaded (TRUE) or lines (FALSE) |
shadebars |
Logical flag indicating if prediction intervals should be plotted as shaded bars (if TRUE) or a shaded polygon (if FALSE).
Ignored if |
shadecols |
Colors for shaded prediction intervals |
col |
the colour for the data line. |
fcol |
the colour for the forecast line. |
pi.col |
If |
pi.lty |
If |
ylim |
Limits on y-axis |
main |
Main title |
ylab |
Y-axis label |
xlab |
X-axis label |
fitcol |
Line colour for fitted values. |
... |
additional arguments to |
None.
Rob J Hyndman
Makridakis, Wheelwright and Hyndman (1998) Forecasting: methods and applications, Wiley: New York. http://robjhyndman.com/forecasting/.
1 2 | deaths.fit <- hw(USAccDeaths,h=48)
plot(deaths.fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.