Uses a generalized additive model (GAM) to smooth a histogram for whitestripe
| x | values of midpoints from |
|---|---|
| y | values of counts from |
| deg | degree of polynomials used |
| k | Number of knots |
| method | Method for smoothing for GAM |
| ... | Arguments passed to |
List of objects: x and y coordinates of histogram, coefficients from GAM, fitted values from GAM, the GAM model, the knots fitted, and degrees of polynomials