| plot.splines2 | R Documentation | 
Plot spline basis functions by lines in different colors.
## S3 method for class 'splines2'
plot(
  x,
  y,
  from = NULL,
  to = NULL,
  n = 101,
  coef = NULL,
  mark_knots = c("none", "internal", "boundary", "all"),
  ...
)
| x | A  | 
| y | An argument that is not used. | 
| from,to | Two numbers representing the start and end point for the plot, respectively. | 
| n | An integer, the number of x values at which to evaluate. | 
| coef | A numeric vector specifying the coefficients of the spline basis
functions.  If it is  | 
| mark_knots | A character vector specifying if knot placement should be indicated by vertical lines. | 
| ... | Additional arguments (other than  | 
This function is intended to quickly visualize the spline basis functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.