View source: R/mspline_plots.R
mspline_plotsetup | R Documentation |
Get basis for an illustration of an M-spline with given knots.
mspline_plotsetup(
knots,
bknot = 10,
tmin = NULL,
tmax = NULL,
degree = 3,
df = 10,
bsmooth = TRUE
)
knots |
Vector of knot locations. If not supplied, The number of knots (excluding zero) is |
bknot |
Location of the final spline knot. |
tmin |
Minimum plotting time. Defaults to zero. |
tmax |
Maximum plotting time. Defaults to the highest knot. |
degree |
Spline polynomial degree. Can only be changed from
the default of 3 if |
df |
Desired number of basis terms, or "degrees of freedom"
in the spline. If |
bsmooth |
If |
Data frame containing the basis, as returned by mspline_basis
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.