← Back to home
Comparison · Analytics

gratia vs worldbank

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

Shared themes:r-package

gratia vs worldbank: at a glance

Featuregratiaworldbank
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesgam, mgcv, ggplot2, statistical-graphicsworld-bank, development-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 worldbank?

A World Bank data wrapper that keeps finding the places its own API can't reach.

worldbank provides R access to the World Bank's public data: World Development Indicators, the Poverty and Inequality Platform, project records, and the Finances One datasets. It settled its type contract early — always a data.frame, never a conditional tibble — and has since layered on opt-in request caching, multi-indicator queries, and query conveniences like most-recent-values and gap filling. The most recent addition sidesteps the API entirely, pulling the full WDI archive as a zip.

Read the full worldbank trajectory →

gratia vs worldbank: 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.

W
worldbank
ANALYTICS
0.0

A World Bank data wrapper that keeps finding the places its own API can't reach.

◆ Current state

worldbank provides R access to the World Bank's public data: World Development Indicators, the Poverty and Inequality Platform, project records, and the Finances One datasets. It settled its type contract early — always a data.frame, never a conditional tibble — and has since layered on opt-in request caching, multi-indicator queries, and query conveniences like most-recent-values and gap filling. The most recent addition sidesteps the API entirely, pulling the full WDI archive as a zip.

◆ Where it's heading

Two threads run through the log. The first is query ergonomics: multiple indicators per call, mrv and gapfill parameters, regex search across the indicator catalog, a shorter wb_data() name that has since become the primary entry point. The second is coverage of things the standard API handles poorly — bulk download reaches footnote and series-time metadata the endpoints never expose, and PIP nowcasts and project records extend past the indicator tables most users start with. The maintainer runs the same infrastructure across their other data packages, and the caching design here is identical to what bbk and treasury received.

◆ Prediction

Expect the remaining rough edges of the World Bank's own API — inconsistent empty responses, metadata only available in bulk files — to keep driving releases, rather than a push into new data providers.

Alternatives to gratia and worldbank

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 worldbank.

See all gratia alternatives → · See all worldbank alternatives →

Recent activity from gratia and worldbank

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

  1. 1mo agoworldbankEmpty queries return an empty frame instead of erroring
  2. 3mo agoworldbankBulk WDI download reaches metadata the API never exposes
  3. 5mo agoworldbankMost-recent-values and gap filling, plus project records
  4. 8mo agoworldbankTest suite stops caching queries for CRAN compliance
  5. 9mo agoworldbankOpt-in request caching with a one-day default
  6. 11mo agogratiaggplot2 4.0.0 compatibility, plus four more quantile-residual families
  7. 1y agoworldbankwb_data() added as an alias for wb_country_indicator()
  8. 1y agogratiaconditional_values() replaces vis.gam for conditional prediction plots
  9. 2y agogratiaparametric_effects() joins the dot-prefix rename; LSS families begin
  10. 2y agogratiaEvery generated column gains a dot prefix
  11. 3y agogratiaReal variable names in smooth_samples(), plus dplyr 1.1.0 fixes
  12. 4y agogratiaM1 example output fixes and confint tibble returns

Frequently asked questions

What is the difference between gratia and worldbank?

Both compete on the same themes — r-package — within Analytics. gratia and worldbank 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 worldbank?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. gratia and worldbank 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 worldbank?

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