# plot.forecast

From forecast v3.07
by Rob Hyndman

##### Forecast plot

Plots a time series with forecasts and prediction intervals.

- Keywords
- ts

##### Usage

```
## S3 method for class 'forecast':
plot(x, include, plot.conf=TRUE, shaded=TRUE,
shadebars=(length(x$mean)
```

##### Arguments

- x
- Forecast object produced by
`forecast`

. - 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
`shaded=FALSE`

. Bars are plotted by default if there are fewer than five forecast horizons. - shadecols
- Colors for shaded prediction intervals
- col
- the colour for the data line.
- fcol
- the colour for the forecast line.
- pi.col
- If
`shade=FALSE`

and`plot.conf=TRUE`

, the prediction intervals are plotted in this colour. - pi.lty
- If
`shade=FALSE`

and`plot.conf=TRUE`

, the prediction intervals are plotted using this line type. - 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
`plot`

.

##### Value

- None.

##### References

Makridakis, Wheelwright and Hyndman (1998) *Forecasting:
methods and applications*, Wiley: New York.

##### See Also

##### Examples

```
deaths.fit <- hw(USAccDeaths,h=48)
plot(deaths.fit)
```

*Documentation reproduced from package forecast, version 3.07, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.