plot.basisfd {fda}R Documentation

Plot a Basis Object

Description

Plots all the basis functions.

Usage

plot.basisfd(x, knots=TRUE, ...)

Arguments

x a basis object
knots logical: If TRUE and x[['type']] == 'bslpine', the knot locations are plotted using vertical dotted, red lines. Ignored otherwise.
... additional plotting parameters passed to matplot.

Value

none

Side Effects

a plot of the basis functions

See Also

plot.fd

Examples


# set up the b-spline basis for the lip data, using 23 basis functions,
#   order 4 (cubic), and equally spaced knots.
#  There will be 23 - 4 = 19 interior knots at 0.05, ..., 0.95
lipbasis <- create.bspline.basis(c(0,1), 23)
# plot the basis functions
plot(lipbasis)


[Package fda version 2.0.5 Index]