gavinsimpson / gratia

ggplot-based graphics and useful functions for GAMs fitted using the mgcv package
https://gavinsimpson.github.io/gratia/
Other
206 stars 28 forks source link

Allow evenly to work *within* the levels of a grouping factor #196

Open gavinsimpson opened 2 years ago

gavinsimpson commented 2 years ago

This would allow the range of the covariate to vary with a grouping factor, such that the data slice doesn't result in extrapolation where for some levels of the factor, the covariate is only observed over a part of the overall range of the covariate in the data.

Suggested by @nsj3 and see the Woodbridge et al example in my materials for the BES Palaeo R workshop, November 2022