Learn R Programming

SIMle (version 0.1.0)

bs.plot.trans: Plots of mapping basis

Description

This function generates the plot of first k basis function.

Usage

bs.plot.trans(type, mp_type, k, upper = 10, s = 1, or = 4, title = "")

Value

The plot of 1 to k basis functions

Arguments

type

type indicates which type of basis is used

mp_type

select type of mapping function, "algeb" indicates algebraic mapping on the real line. "logari" represents logarithmic mapping on the real line

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)

upper

the upper bound for basis domain, the default is 10

s

s is a positive scaling factor, the default is 1

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.trans("Legen", "algeb", 2)

Run the code above in your browser using DataLab