powered by
Type of plot depends on value of plot.type:
plot.type
plot.type="function"
produces a plot of the forecast functions;
plot.type="components"
produces a plot of the basis functions and coefficients with forecasts and prediction intervals for each coefficient;
plot.type="variance"
produces a plot of the variance components.
# S3 method for fmforecast plot( x, plot.type = c("function", "component", "variance"), vcol = 1:4, mean.lab = "Mean", xlab2 = "Year", h = 1, ... )# S3 method for lca plot(x, ...)
# S3 method for lca plot(x, ...)
None. Function produces a plot
Output from forecast.ftsm, forecast.fdm or lca.
forecast.ftsm
forecast.fdm
lca
Type of plot. See details.
Colors to use if plot.type="variance".
Label for mean component.
x-axis label for coefficient time series.
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 plot.ftsf (if plot.type=="component").
plot.demogdata
plot.type=="function"
plot
plot.type=="variance"
plot.ftsf
plot.type=="component"
Rob J Hyndman
fdm, lca, forecast.fdm
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