## Example given in the reference paper by Ramsay (1988)
library(graphics)
x <- seq(0, 1, by = .01)
knots <- c(0.3, 0.5, 0.6)
iMat <- iSpline(x, knots = knots, degree = 2, intercept = TRUE)
matplot(x, iMat, type = "l", ylab = "I-spline basis")
abline(v = knots, lty = 2, col = "gray")
Run the code above in your browser using DataLab