Plot a Functional Data Object
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(fd, Lfd=0, matplt=T, href=T, nx=101, xlab=xlabel, ylab=ylabel, xlim=rangex, ylim=rangey, ...)
REQUIRED ARGUMENTS:
- fd
-
A functional data object.
OPTIONAL ARGUMENTS:
- Lfd
-
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.
- matplt
-
A logical variable. If TRUE, the observations are all plotted simultaneously. If not,
they are plotted one by one, with a mouse click to move to the
next plot.
- href
-
A logical variable. If TRUE, a horizontal dotted line is plotted at zero.
- 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.
- xlab
-
A label for the abscissa.
- ylab
-
A label for the ordinate.
- xlim
-
Axis limits for the abscissa.
- ylim
-
Axis limits for the ordinate.
- ...
-
Additional arguments that can be used
in all plotting programs.
VALUE:
A plot of the functional data. Note that for multivariate data, a
suitable array must first be defined using the par function.
DETAILS:
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)