Recreate the GAM partial regression smooth plots from R package mgcv (with a little style)

We use the R library mgcv for modeling environmental data with generalized additive models (GAMs). It's a great library loaded with functionality but we often find that the default diagnostic plots are uninspiring. The partial residual plots, in particular, are functional but not pretty and the residuals are almost invisible. This post would be much […]

Continue reading →