← Back to home
Comparison · Analytics

gratia vs rATTAINS

A side-by-side editorial comparison of gratia and rATTAINS — release velocity, themes, recent moves, and the top alternatives to consider.

Shared themes:r-package

gratia vs rATTAINS: at a glance

FeaturegratiarATTAINS
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesgam, mgcv, ggplot2, statistical-graphicswater-quality, epa-data, r-package, api-wrapper
Last editorial update50m ago5h ago
WebsiteVisit →Visit →

What is gratia?

The tidy front-end for GAMs, now stable enough that upstream ggplot2 sets its release calendar.

gratia wraps mgcv-fitted generalized additive models in tidy data frames and ggplot2 graphics — smooth_estimates(), fitted_values(), derivatives(), draw() and appraise() cover evaluation, prediction and diagnostics. The API reached its intended shape at 0.9.0, when every generated column was renamed to a dot-prefixed form, and 0.10.0 added conditional_values() for covariate-conditional prediction plots.

Read the full gratia trajectory →

What is rATTAINS?

The R client for EPA water quality data spent two releases undoing its own promises about data shape.

rATTAINS wraps the EPA's ATTAINS API, which holds state water quality assessments and impaired-waters listings. The package reached 1.0.0 by promising stable, consistently rectangled return structures, then walked that promise back in 1.1.0 when it dropped the dependency doing the rectangling. As of 1.2.0 it also requires an API key, because ATTAINS itself began requiring one in May 2026.

Read the full rATTAINS trajectory →

gratia vs rATTAINS: editorial side-by-side

G
gratia
ANALYTICS
0.0

The tidy front-end for GAMs, now stable enough that upstream ggplot2 sets its release calendar.

◆ Current state

gratia wraps mgcv-fitted generalized additive models in tidy data frames and ggplot2 graphics — smooth_estimates(), fitted_values(), derivatives(), draw() and appraise() cover evaluation, prediction and diagnostics. The API reached its intended shape at 0.9.0, when every generated column was renamed to a dot-prefixed form, and 0.10.0 added conditional_values() for covariate-conditional prediction plots.

◆ Where it's heading

The package has moved through a long rewrite cycle and out the other side. Successive releases replaced evaluate_smooth() with smooth_estimates(), rebuilt draw() on top of it, then renamed the entire output vocabulary to avoid colliding with user variables. That work is finished; 0.11.1 is driven almost entirely by ggplot2 4.0.0 compatibility, with new mgcv family support for quantile residuals riding along. Development now tracks upstream breakage rather than internal redesign.

◆ Prediction

Expect the next releases to continue absorbing ggplot2 4.x and mgcv changes, with incremental family coverage in quantile_residuals() as the visible new work. The entries give no signal on which mgcv families come next.

R
rATTAINS
ANALYTICS
0.0

The R client for EPA water quality data spent two releases undoing its own promises about data shape.

◆ Current state

rATTAINS wraps the EPA's ATTAINS API, which holds state water quality assessments and impaired-waters listings. The package reached 1.0.0 by promising stable, consistently rectangled return structures, then walked that promise back in 1.1.0 when it dropped the dependency doing the rectangling. As of 1.2.0 it also requires an API key, because ATTAINS itself began requiring one in May 2026.

◆ Where it's heading

The direction is toward a thinner, lower-maintenance wrapper. Caching went in 0.1.4 when hoardr was archived, tidyjson and janitor went earlier, tibblify went in 1.1.0, and each removal handed a little more data-shaping responsibility back to the user — the current advice is to pass .unnest = FALSE and rectangle the results with whatever tidying package you prefer. Release cadence is slow and mostly reactive: upstream API terms, archived dependencies, and compatibility with test tooling account for most of the log. The package's centre of gravity is staying installable and honest about what ATTAINS returns rather than smoothing it over.

◆ Prediction

Given the pattern, the next release is likelier to be a compatibility or upstream-driven fix than new endpoint coverage; how the API key requirement affects users in scripted and CI contexts is the obvious open question the entries do not yet answer.

Alternatives to gratia and rATTAINS

Other Analytics products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either gratia or rATTAINS.

See all gratia alternatives → · See all rATTAINS alternatives →

Recent activity from gratia and rATTAINS

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 1mo agorATTAINSATTAINS now requires an API key, and the package follows
  2. 8mo agorATTAINSThe tibblify dependency goes, and with it the stable data shapes
  3. 11mo agogratiaggplot2 4.0.0 compatibility, plus four more quantile-residual families
  4. 1y agorATTAINSTest suite updated for vcr v2
  5. 1y agogratiaconditional_values() replaces vis.gam for conditional prediction plots
  6. 2y agogratiaparametric_effects() joins the dot-prefix rename; LSS families begin
  7. 2y agogratiaEvery generated column gains a dot prefix
  8. 3y agorATTAINS1.0.0 commits to stable return structures via tibblify
  9. 3y agogratiaReal variable names in smooth_samples(), plus dplyr 1.1.0 fixes
  10. 3y agorATTAINSCaching removed after hoardr was archived
  11. 4y agogratiaM1 example output fixes and confint tibble returns
  12. 4y agorATTAINSRequests retry on timeout, with offline detection

Frequently asked questions

What is the difference between gratia and rATTAINS?

Both compete on the same themes — r-package — within Analytics. gratia and rATTAINS are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is gratia better than rATTAINS?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. gratia and rATTAINS are shipping at a similar cadence (velocity 0.0 vs 0.0, both within Sparkpulse's "active" band). For your specific use case, the alternatives sections above list other Analytics products to evaluate alongside.

What are the best alternatives to gratia?

Top gratia alternatives in Analytics are ranked by recent ship velocity. Browse the "gratia alternatives" section above for the current picks, or visit /alternatives/gratia for the full list with editorial commentary on each.

What are the best alternatives to rATTAINS?

Top rATTAINS alternatives in Analytics are ranked by recent ship velocity. Browse the "rATTAINS alternatives" section above for the current picks, or visit /alternatives/rattains for the full list with editorial commentary on each.