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
data(t2.voi.hist)y=t2.voi.hist$countsx=t2.voi.hist$midsx=x[!is.na(y)];y=y[!is.na(y)]# 30 used for speed of examples.hist=smooth_hist(x, y, k=30)plot(t2.voi.hist, border="red")lines(s.hist)