gratia
R package gratia by gavinsimpson — release notes from GitHub.
The tidy front-end for GAMs, now stable enough that upstream ggplot2 sets its release calendar.
◆Recent moves
- 11mo ago
ggplot2 4.0.0 compatibility, plus four more quantile-residual families
Primarily a compatibility release for ggplot2 4.0.0, which forced a fix to residual histogram binning so the middle bin centres at zero. quantile_residuals() picks up mgcv's scat, nb, betar and tw families, and partial_derivatives() now handles multiple smooths and skips random-effect and univariate terms instead of erroring.
View source ↗ - 1y ago
conditional_values() replaces vis.gam for conditional prediction plots
conditional_values() lands as a tidy replacement for mgcv::vis.gam(), plotting predictions conditional on chosen covariates in the marginaleffects idiom. penalty() and basis() also gain reparameterization that exposes the penalty null space directly.
View source ↗ - 2y ago
parametric_effects() joins the dot-prefix rename; LSS families begin
Catches parametric_effects() up to the 0.9.0 renaming, relabels random-effect plots by smooth label rather than variable name, and begins location-scale-shape family support in fitted_samples(). Cleanup work finishing what the previous release started.
View source ↗ - 2y ago
Every generated column gains a dot prefix
⚡ SPARKThe release that fixed gratia's output vocabulary: every generated column across smooth_estimates(), fitted_values(), derivatives() and their siblings gained a dot prefix, and derivatives() switched to storing evaluation points under their real variable names. It is the boundary every downstream script written against gratia has to cross.
View source ↗ - 3y ago
Real variable names in smooth_samples(), plus dplyr 1.1.0 fixes
Absorbs dplyr 1.1.0 changes and fixes smooth_samples() to return real variable names instead of .x1, .x2 placeholders — a precursor to the wholesale renaming at 0.9.0. draw.gam() also learns tensor products with a marginal random-effect smooth.
View source ↗ - 4y ago
M1 example output fixes and confint tibble returns
A patch release driven by example output differing on M1 Macs, with confint methods returning tibbles and smooth plots relabelled to "Partial effect". Reference-output housekeeping rather than capability.
View source ↗