natural_cspline | R Documentation |
Natural cubic spline
natural_cspline(x, y, pos)
x |
Abscissas of the knots |
y |
Ordinates of the knots |
pos |
Requested positions |
An array corresponding to the values of the spline at the requested positions
s<-natural_cspline(x = c(0,.2,.3, .9,.95), y= c(1,3,5,8,12), pos=seq(0,1,0.01))
plot(s, type='l')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.