Learn R Programming

Sie2nts (version 0.1.0)

bs.plot: Plots of Basis

Description

bs.plot() generates the plot of first k basis function.

Usage

bs.plot(type, k, or = 4, title = "")

Value

The plot of 1 to k basis functions

Arguments

type

type indicates which type of basis is used (There are 31 types in this package)

k

The k is the number of basis functions represented (If wavelet are chosen, the real number of basis is 2^k. If Cspli is chosen, the real number of basis is k-2+or)

or

indicates the order of spline and only used in Cspli type, default is 4 which indicates cubic spline

title

give the title for the basis plot

Examples

Run this code
bs.plot("Legen", 2)
bs.plot("tri", 3)

Run the code above in your browser using DataLab