← Back to home
Comparison · Analytics

socialmixr vs tidyterra

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

socialmixr vs tidyterra: at a glance

Featuresocialmixrtidyterra
SectorAnalyticsAnalytics
Velocity score0.00.0
Sparks · 30d00
Top themescontact matrices, epidemiology, pipeline api, breaking changesgeospatial, terra, tidyverse, ggplot2
Last editorial update3h ago55m ago
WebsiteVisit →Visit →

What is socialmixr?

socialmixr breaks its one-shot contact_matrix() call into a composable pipeline.

socialmixr builds age-structured social contact matrices from survey data for infectious-disease modelling. Version 0.6.0 replaces the monolithic contact_matrix() entry point with a chain of composable steps — filter, assign age groups, weigh, compute, then symmetrise, split or convert per capita — behind a new contact_matrix S3 class. Survey downloading is being handed off to a separate contactsurveys package.

Read the full socialmixr trajectory →

What is tidyterra?

tidyterra finished wiring terra objects into the tidyverse, one verb family at a time.

tidyterra supplies tidyverse methods and ggplot2 geoms for terra's SpatRaster and SpatVector classes, so spatial objects can be manipulated with dplyr verbs and plotted without conversion. The 1.0.0 release in January 2026 set a hard ggplot2 4.0.0 floor and added broom-style generics — tidy(), glance() and required_pkgs() across SpatRaster, SpatVector, SpatGraticule and SpatExtent. The 1.1.0 and 1.2.0 releases since have filled in the remaining dplyr and tidyr verb surface for SpatVector.

Read the full tidyterra trajectory →

socialmixr vs tidyterra: editorial side-by-side

S
socialmixr
ANALYTICS
0.0

socialmixr breaks its one-shot contact_matrix() call into a composable pipeline.

◆ Current state

socialmixr builds age-structured social contact matrices from survey data for infectious-disease modelling. Version 0.6.0 replaces the monolithic contact_matrix() entry point with a chain of composable steps — filter, assign age groups, weigh, compute, then symmetrise, split or convert per capita — behind a new contact_matrix S3 class. Survey downloading is being handed off to a separate contactsurveys package.

◆ Where it's heading

The arc from 0.4.0 to 0.6.0 is decomposition: first extracting helpers like assign_age_groups(), then moving downloads out of the package, and now exposing every stage of matrix construction as its own verb. Breaking changes are accepted at each step — preserved empty age groups, arrays instead of xtabs, [N,Inf) labels — with the new class inheriting from list so existing $matrix access keeps working. The label change is explicitly aligned with the contactmatrix package.

◆ Prediction

Expect the deprecated dotted argument names and the remaining in-package download paths to be removed once the contactsurveys handoff completes, leaving contact_matrix() as a thin wrapper over the pipeline.

T
tidyterra
ANALYTICS
0.0

tidyterra finished wiring terra objects into the tidyverse, one verb family at a time.

◆ Current state

tidyterra supplies tidyverse methods and ggplot2 geoms for terra's SpatRaster and SpatVector classes, so spatial objects can be manipulated with dplyr verbs and plotted without conversion. The 1.0.0 release in January 2026 set a hard ggplot2 4.0.0 floor and added broom-style generics — tidy(), glance() and required_pkgs() across SpatRaster, SpatVector, SpatGraticule and SpatExtent. The 1.1.0 and 1.2.0 releases since have filled in the remaining dplyr and tidyr verb surface for SpatVector.

◆ Where it's heading

The package is converging on complete verb coverage rather than branching into new capability. 1.2.0 landed the grouping and nesting family — group_split, group_nest, nest_by, nest, nest_join, group_map, group_modify, reframe, cross_join, complete, expand — which is the last large gap between SpatVector and an ordinary data frame. Its cadence is set externally: releases track ggplot2 and dplyr version transitions, adopting arguments like .by as they stabilize upstream. The maintainer now states AI assistance explicitly for both documentation and generated methods.

◆ Prediction

With the verb surface close to complete, expect the next releases to track upstream ggplot2 and dplyr changes and to extend coverage to SpatRaster where methods currently exist only for SpatVector.

Alternatives to socialmixr and tidyterra

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 socialmixr or tidyterra.

See all socialmixr alternatives → · See all tidyterra alternatives →

Recent activity from socialmixr and tidyterra

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

  1. 1mo agotidyterraGrouping and nesting verbs arrive for SpatVector
  2. 3mo agosocialmixrContact matrices become a composable pipeline
  3. 5mo agotidyterra.by stabilizes across mutate, filter, slice and fill
  4. 6mo agosocialmixrPatch: load_survey() handles files without cont_id
  5. 6mo agotidyterra1.0.0 requires ggplot2 4.0 and adds broom-style generics
  6. 6mo agosocialmixrAge-group assignment and population lookup split out
  7. 1y agotidyterraTest hotfix for CRAN
  8. 1y agotidyterramask_projection stops rasters wrapping around the globe
  9. 1y agotidyterraFactor levels combined across layers; scale limits truncate legends
  10. 1y agosocialmixrFaster survey loading and cached Zenodo lookups
  11. 2y agosocialmixrcontact_matrix() now takes survey objects only
  12. 2y agosocialmixrTest fixes for machine-precision failures

Frequently asked questions

What is the difference between socialmixr and tidyterra?

They serve adjacent needs but don't currently overlap on shipped themes. socialmixr and tidyterra 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 socialmixr better than tidyterra?

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

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

What are the best alternatives to tidyterra?

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