← Back to home
Comparison · Analytics

gratia vs quanteda.textmodels

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

Shared themes:r-package

gratia vs quanteda.textmodels: at a glance

Featuregratiaquanteda.textmodels
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themesgam, mgcv, ggplot2, statistical-graphicsr-package, text-classification, nlp, quanteda
Last editorial update2h ago54m 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 quanteda.textmodels?

Split out of quanteda, then quiet - one new classifier since 2020.

quanteda.textmodels holds the scaling and classification models factored out of quanteda's main package. The visible history is thin: a logistic regression classifier and a native C++ rewrite of svmlin in late 2020, an SVM default change in early 2021, and after that only compatibility work. The most recent release fixes a namespace break caused by quanteda 4.1.0 dropping RcppArmadillo.

Read the full quanteda.textmodels trajectory →

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

Q0.0

Split out of quanteda, then quiet - one new classifier since 2020.

◆ Current state

quanteda.textmodels holds the scaling and classification models factored out of quanteda's main package. The visible history is thin: a logistic regression classifier and a native C++ rewrite of svmlin in late 2020, an SVM default change in early 2021, and after that only compatibility work. The most recent release fixes a namespace break caused by quanteda 4.1.0 dropping RcppArmadillo.

◆ Where it's heading

The package now moves when its parent or a dependency moves, not on its own schedule. Four of the six most recent releases exist to track changes in quanteda, Matrix, or CRAN policy. The modelling decisions that were made - defaulting textmodel_svm() to the L2-regularized L2-loss dual solver, reducing svmlin to a single algorithm - have not been revisited since.

◆ Prediction

The next release most likely follows another upstream change in quanteda or a Matrix and Rcpp dependency rather than adding a model.

Alternatives to gratia and quanteda.textmodels

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 quanteda.textmodels.

See all gratia alternatives → · See all quanteda.textmodels alternatives →

Recent activity from gratia and quanteda.textmodels

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 agoquanteda.textmodelsNamespace fixed after quanteda dropped RcppArmadillo
  3. 1y agogratiaconditional_values() replaces vis.gam for conditional prediction plots
  4. 2y agogratiaparametric_effects() joins the dot-prefix rename; LSS families begin
  5. 2y agogratiaEvery generated column gains a dot prefix
  6. 3y agoquanteda.textmodelsCRAN issues and documentation fixed
  7. 3y agogratiaReal variable names in smooth_samples(), plus dplyr 1.1.0 fixes
  8. 3y agoquanteda.textmodelsCompatibility with Matrix 1.4.2
  9. 4y agogratiaM1 example output fixes and confint tibble returns
  10. 5y agoquanteda.textmodelsDuplicate example dfm removed
  11. 5y agoquanteda.textmodelsSVM default switched to the L2-regularized dual solver
  12. 5y agoquanteda.textmodelsLogistic regression classifier added; svmlin rewritten in C++

Frequently asked questions

What is the difference between gratia and quanteda.textmodels?

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

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

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