Plot spline basis functions by lines in different colors.
# S3 method for splines2
plot(
x,
y,
from = NULL,
to = NULL,
n = 101,
mark_knots = c("none", "internal", "boundary", "all"),
...
)
A splines2
object.
An argument that is not used.
Two numbers representing the start and end point for the plot, respectively.
An integer, the number of x values at which to evaluate.
A character vector specifying if knot placement should be indicated by vertical lines.
Additional arguments (other than x
and y
) that
would be passed to matplot()
.
This function is intended to quickly visualize the spline basis functions.