Exercise

Extrapolation in surface plots

When making predictions from the models, it is important to understand how far from the range of your data you are extrapolating. With multivariate smooths, the shape of the areas supported by data may be complex. Here you'll make plots that compare extrapolations to support in the data.

The model (mod2d) from exercise 2 is available in your workspace.

Instructions 1/3

undefined XP
  • 1

    Make a contour plot of the model using vis.gam(), extrapolating out from the data 5%.

  • 2

    Make a contour plot of the model using vis.gam(), extrapolating out from the data 10%.

  • 3
    • Make a contour plot of the model using vis.gam(), extrapolating out from the data 25%.
    • Overlay the meuse data on top of your visualization as points.