Learn R Programming

fda (version 1.2.3)

plot.basisfd: Plot a Basis Object

Description

Plots all the basis functions.

Usage

plot.basisfd(x, ...)

Arguments

x
a basis object
...
additional plotting parameters that can be used in plot

Value

  • none

Side Effects

a plot of the basis functions

See Also

plot.fd

Examples

Run this code
# 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)

Run the code above in your browser using DataLab