Learn R Programming

demography (version 1.11)

plot.fmres: Plot residuals from fitted demographic model

Description

Functions to produce a plot of residuals from a fitted demographic model or a fitted functional time series model.

Usage

## S3 method for class 'fmres':
plot(x, type = c("image", "fts", "contour", "persp"),
		xlab = "Year", ylab = "Age", zlab = "Error", ...)

Arguments

x
Generated by residuals(fit) where fit is the output from fdm or lca.
type
Type of plot to use. Possiblities are image, fts, contour and persp.
xlab
Label for x-axis.
ylab
Label for y-axis.
zlab
Label for z-axis.
...
Plotting parameters

Value

  • None.

See Also

fdm, lca, ftsm

Examples

Run this code
france.fit <- fdm(fr.mort)
plot(residuals(france.fit))

Run the code above in your browser using DataLab