Plots splines from an mgcv gam model (or gamm, just pass mod$gam). This has less functionality than the plot.gam() function (no all.terms=T), it's just a default using ggplot with facet for visual effects. Since it doesn't have an all.terms=T option, it will only plot the spline terms.
1 | plotGAMSplines(mod, residuals = FALSE, rug = FALSE)
|
mod |
gam model |
residuals |
add residuals (default=F) |
rug |
add rug plot at bottom of x-axis (default=F) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.