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

Change derivatives to only produce `n = 100` evenly spaced values #216

Closed gavinsimpson closed 1 year ago

gavinsimpson commented 1 year ago

smooth_estimates() and derivatives() generate different numbers of evenly spaced values of the covariate if no data is provided. Harmonise to n = 100.