1. Learn
  2. /
  3. Courses
  4. /
  5. Nonlinear Modeling with Generalized Additive Models (GAMs) in R

Exercise

Plotting the model surface

Let's explore the different visualization schemes available in mgcv's plot() function.

The model you built in the last exercise (mod2da) is available in your workspace.

Instructions 1/3

undefined XP
  • 1

    Plot the interaction terms of mod2da as a contour plot.

  • 2

    Run the plot() function so interaction terms are displayed as 3D surfaces.

  • 3

    Run the plot() function so interaction terms are displayed as colored heat maps on a single page.