| plot.basisfd {fda} | R Documentation |
Plots all the basis functions.
## S3 method for class 'basisfd': plot(x, knots=TRUE, axes=NULL, ...)
x |
a basis object |
knots |
logical: If TRUE and x[['type']] == 'bslpine', the knot locations are plotted using vertical dotted, red lines. Ignored otherwise. |
axes |
Either a logical or a list or NULL.
|
... |
additional plotting parameters passed to matplot.
|
none
a plot of the basis functions
##
## 1. b-spline
##
# 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)
##
## 2. Fourier basis
##
yearbasis3 <- create.fourier.basis(c(0,365),
axes=list("axesIntervals") )
# plot the basis
plot(yearbasis3)