Learn R Programming

demography (version 1.11)

plot.fmforecast: Plot forecasts from a functional demographic modell

Description

Type of plot depends on value of plot.type: [object Object],[object Object],[object Object]

Usage

## S3 method for class 'fmforecast':
plot(x, plot.type = c("function", "component", "variance"),
                 vcol = 1:4, mean.lab = "Mean", xlab2 = "Year", h = 1,
                 ...)

Arguments

x
Output from forecast.ftsm, forecast.fdm or lca.
plot.type
Type of plot. See details.
vcol
Colors to use if plot.type="variance".
mean.lab
Label for mean component.
xlab2
x-axis label for coefficient time series.
h
If plot.type="variance", h gives the forecast horizon for which the variance is plotted.
...
Other arguments are passed to plot.demogdata (if plot.type=="function"), plot (if plot.type=="variance") or

Value

  • None. Function produces a plot

See Also

fdm, lca, forecast.fdm

Examples

Run this code
france.fcast <- forecast(fdm(fr.mort))
plot(france.fcast)
plot(france.fcast,"c")
plot(france.fcast,"v")

Run the code above in your browser using DataLab