← Back to home
Comparison · Analytics

gratia vs kde1d

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

Shared themes:r-package

gratia vs kde1d: at a glance

Featuregratiakde1d
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesgam, mgcv, ggplot2, statistical-graphicsdensity-estimation, kernel-methods, zero-inflation, cpp-library
Last editorial update1h ago1h 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 kde1d?

A univariate density estimator that added zero-inflated data and reopened its C++ API to do it.

kde1d estimates univariate densities with local polynomial kernel methods, handling bounded, discrete and now zero-inflated variables through a single type argument, with the numerical work in a header-only C++ library usable outside R. Version 1.1.0 added the zero-inflated discrete-continuous mixture case and shipped a new C++ API as an explicit breaking change; 1.1.1 followed in June with auto-generated notes and no description.

Read the full kde1d trajectory →

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

K
kde1d
ANALYTICS
0.0

A univariate density estimator that added zero-inflated data and reopened its C++ API to do it.

◆ Current state

kde1d estimates univariate densities with local polynomial kernel methods, handling bounded, discrete and now zero-inflated variables through a single type argument, with the numerical work in a header-only C++ library usable outside R. Version 1.1.0 added the zero-inflated discrete-continuous mixture case and shipped a new C++ API as an explicit breaking change; 1.1.1 followed in June with auto-generated notes and no description.

◆ Where it's heading

The package has alternated between performance work and widening the class of data it accepts. The 1.0.0 release was the performance milestone — FFT-based estimation, a better integration algorithm for the p, q and r functions, deterministic jittering replacing randomness, and standalone C++ headers. The 1.1.0 release is the scope milestone, adding a third data type to the two it already handled. Releases come from the same maintainer as svines and cluster on shared dates, so changes in the underlying C++ surface across the vine and density stack tend to ship together.

◆ Prediction

With the C++ API deliberately reworked for standalone use at 1.1.0, further work most plausibly consolidates that interface rather than adding data types. What 1.1.1 actually changed is not readable from its body.

Alternatives to gratia and kde1d

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

See all gratia alternatives → · See all kde1d alternatives →

Recent activity from gratia and kde1d

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

  1. 11mo agogratiaggplot2 4.0.0 compatibility, plus four more quantile-residual families
  2. 1y agokde1dkde1d 1.1.1
  3. 1y agokde1dZero-inflated mixtures and a new standalone C++ API
  4. 1y agogratiaconditional_values() replaces vis.gam for conditional prediction plots
  5. 2y agogratiaparametric_effects() joins the dot-prefix rename; LSS families begin
  6. 2y agogratiaEvery generated column gains a dot prefix
  7. 3y agogratiaReal variable names in smooth_samples(), plus dplyr 1.1.0 fixes
  8. 4y agogratiaM1 example output fixes and confint tibble returns
  9. 4y agokde1dBit-wise Boolean operations removed
  10. 5y agokde1ddkde1d() invisible output fixed
  11. 5y agokde1dValgrind false positive silenced
  12. 6y agokde1dqrng dependency dropped; undefined behaviour fixed

Frequently asked questions

What is the difference between gratia and kde1d?

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

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

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