Learn R Programming

ftsa (version 4.7)

plot.fmres: Plot residuals from a fitted functional model.

Description

Functions to produce a plot of residuals from a fitted functional model.

Usage

"plot"(x, type = c("image", "fts", "contour", "filled.contour", "persp"), xlab = "Year", ylab = "Age", zlab = "Residual", ...)

Arguments

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

Value

Produces a plot.

See Also

ftsm, forecast.ftsm, plot.fm, plot.fmres, residuals.fm, summary.fm

Examples

Run this code
# colorspace package was used to provide a more coherent color option.	
plot(residuals(ftsm(y = ElNino)), type = "filled.contour", xlab = "Month", 
     ylab = "Residual sea surface temperature")

Run the code above in your browser using DataLab