Plot a Functional Data Object With Data
plotfit.fd
Language Reference for FDA Library

Plot a Functional Data Object With Data

DESCRIPTION:

Functional observations are plotted one by one along with the data used to estimate them, or residuals can be plotted. This function is useful for assessing how well a functional data object fits the actual discrete data.

USAGE:

plotfit.fd(y, argvals, fdobj, rng = rangeval,
           index = 1:nrep, nfine = 101, residual = F,
           sortwrd = F, titles=NULL, ...)

REQUIRED ARGUMENTS:

y
a vector, matrix or array containing the discrete observations used to estimate the functional data object.
argvals
a vector containing the argument values corresponding to the first dimension of y.
fdobj
a functional data object estimated from the data.

OPTIONAL ARGUMENTS:

rng
a vector of length 2 specifying a reduced range contained within the range defined by the functional data object or the arguments. This is used to examine the fit over a limited segment of the whole range of it.
index
a set of indices of functions if only a subset of the observations are to be plotted.
nfine
the number of argument values used to define the plot of the functional data object. This may need to be increased if the functions have a great deal of fine detail.
residual
a logical variable: if T, the residuals are plotted rather than the data and functional data object.
sortwrd
a logical variable: if T, the observations are sorted for plotting by the size of the sum of squared residuals.
titles
a vector containing strings that are titles for each observation.
...
additional arguments such as axis labels that may be used with other plot functions.

SEE ALSO:

plot.fd, lines.fd