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

Plot a Functional Data Object

DESCRIPTION:

Functional data observations, or a derivative of them, are plotted. These may be either plotted simultaneously, as matplot does for multivariate data, or one by one with a mouse click to move from one plot to another. The function also accepts the other plot specification arguments that the regular plot does.

USAGE:

plot.fd(fdobj, Lfdobj=0, href=T, nx=201,
        titles=NULL, xlab=xlabel, ylab=ylabel,
        xlim=rangex, ylim=rangey, ask=F, ...)

REQUIRED ARGUMENTS:

fdobj
a functional data object to be plotted.

OPTIONAL ARGUMENTS:

Lfdobj
either a nonnegative integer or a linear differential operator object. If present, the derivative or the value of applying the operator is plotted rather than the functions themselves.
href
a logical variable: I if T, the observations are all plotted simultaneously. If not, they are plotted one by one, with a mouse click to move to the next plot.
nx
the number of points to use to define the plot. The default is usually enough, but for a highly variable function more may be required.
titles
a vector of strings for identifying curves
xlab
a label for the horizontal axis.
ylab
a label for the vertical axis.
xlim
a vector of length 2 containing axis limits for the horizontal axis.
ylim
a vector of length 2 containing axis limits for the vertical axis.
ask
a logical value: if T, each curve is shown separately, and the plot advances with a mouse click
...
additional plotting arguments that can be used with function plot

VALUE:

none

SIDE EFFECTS:

a plot of the functional observations

DETAILS:

Note that for multivariate data, a suitable array must first be defined using the par function.

SEE ALSO:

lines.fd, plotfit.fd

EXAMPLES:

#  plot all the temperature functions for the monthly weather data
plot(tempfd, main="Temperature Functions")
#  plot each temperature function in turn, advancing by a click
plot(tempfd, matplt=F)