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. Calling
plot
with an fdSmooth
or an fdPar
object plots its fd
component.
# S3 method for fd
plot (x, y, Lfdobj=0, href=TRUE, titles=NULL,
xlim=NULL, ylim=NULL, xlab=NULL,
ylab=NULL, ask=FALSE, nx=NULL, axes=NULL, ...)
# S3 method for fdPar
plot(x, y, Lfdobj=0, href=TRUE, titles=NULL,
xlim=NULL, ylim=NULL, xlab=NULL,
ylab=NULL, ask=FALSE, nx=NULL, axes=NULL, ...)
# S3 method for fdSmooth
plot(x, y, Lfdobj=0, href=TRUE, titles=NULL,
xlim=NULL, ylim=NULL, xlab=NULL,
ylab=NULL, ask=FALSE, nx=NULL, axes=NULL, ...)
'done'
functional data object(s) to be plotted.
sequence of points at which to evaluate the functions 'x' and plot on the horizontal axis. Defaults to seq(rangex[1], rangex[2], length = nx).
NOTE: This will be the values on the horizontal axis, NOT the vertical axis.
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.
a logical variable: If TRUE
, add a horizontal reference line
at 0.
a vector of strings for identifying curves
a label for the horizontal axis.
a label for the vertical axis.
a vector of length 2 containing axis limits for the horizontal axis.
a vector of length 2 containing axis limits for the vertical axis.
a logical value: If TRUE
, each curve is shown separately, and
the plot advances with a mouse click
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.
Either a logical or a list or NULL
.
logical whether axes should be drawn on the plot
list
a list used to create custom axes
used to create axes via
x$axes[[1]]
and x$axes[-1]
. The primary example of
this uses list("axesIntervals", ...)
, e.g., with
Fourier
bases to create CanadianWeather
plots
additional plotting arguments that can be used with function
plot
a plot of the functional observations
Note that for multivariate data, a suitable array must first be
defined using the par
function.
lines.fd
, plotfit.fd