get.deriv.smooth.hist | R Documentation |
This function outputs the nth derivative of a histogram smooth.
get.deriv.smooth.hist(x, coefs, knots, deg = 4, deriv.deg = 1)
x |
values from smooth_hist |
coefs |
Coefficients from GAM from smooth_hist |
knots |
Number of knots fit for GAM |
deg |
Degree of polynomials |
deriv.deg |
The degree of the derivative. |
Derivative of smoothed histogram
data(smoothed_histogram) dy<-get.deriv.smooth.hist(xvals, coefs=s.hist$coefs, knots=s.hist$knots, deg=s.hist$deg, deriv.deg=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.