The gratia
package was created by Gavin Simpson, with much of its usage documented here. The package includes several useful functions for plotting generalized additive models (GAMs), but also for estimating "under-the-hood" features of GAMs, such as the basis functions, derivatives, and partial residuals. Some of the common functions include:
draw
: used as a catch-allggplot
style plot for GAMsbasis
: create data frame containing basis functions for GAM splinesconfint.gam
: estimates confidence intervals for smooths.