← Back to home
Comparison · Infra & APIs

afcharts vs crandep

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

afcharts vs crandep: at a glance

Featureafchartscrandep
SectorInfra & APIsInfra & APIs
Velocity score0.00.0
Sparks · 30d00
Top themesdata-visualisation, government-statistics, ggplot2, colour-palettescran, dependency-network, power-law, mcmc
Last editorial update9h ago1h ago
WebsiteVisit →Visit →

What is afcharts?

UK government chart styling in ggplot2, chasing ggplot2 v4 and stretching its palette to five.

afcharts supplies the UK Analysis Function's chart styling for ggplot2, as a theme, colour and fill scales, and a use_afcharts() call that applies the styling globally. Version 0.5.1 extends the sequential palette to five shades so it can carry quintile data such as deprivation bands, renames the na_colour argument to na.value, and adds a reset argument to switch the styling back off. The package began as a first release derived from sgplot and has had three releases in roughly two years.

Read the full afcharts trajectory →

What is crandep?

Half CRAN dependency scraper, half extreme-value modelling kit — and the scraper half keeps finding bugs.

crandep does two jobs that rarely share a package: it harvests the CRAN dependency network, and it fits power-law and extreme-value mixture models to the resulting degree distributions. The 2024 releases were all model work — profile posteriors, wrappers, a constrained variant, a TZP-power-law mixture between the two- and three-component models. The 2025 releases are entirely the other half, fixing what the harvester was silently getting wrong.

Read the full crandep trajectory →

afcharts vs crandep: editorial side-by-side

A
afcharts
INFRA · APIS
0.0

UK government chart styling in ggplot2, chasing ggplot2 v4 and stretching its palette to five.

◆ Current state

afcharts supplies the UK Analysis Function's chart styling for ggplot2, as a theme, colour and fill scales, and a use_afcharts() call that applies the styling globally. Version 0.5.1 extends the sequential palette to five shades so it can carry quintile data such as deprivation bands, renames the na_colour argument to na.value, and adds a reset argument to switch the styling back off. The package began as a first release derived from sgplot and has had three releases in roughly two years.

◆ Where it's heading

The work splits between palette design and keeping the styling composable. On the design side the sequential palette growing to five shades is driven by a specific reporting need rather than aesthetics, since quintiles are a standard unit in UK official statistics. On the mechanical side, the na.value rename was forced by ggplot2 v4.0.1, theme_af() now respects options set by an earlier use_afcharts() call, and a reset argument acknowledges that global styling needs an off switch. These are the problems a styling package hits once people use it inside larger documents.

◆ Prediction

Expect continued adjustment to ggplot2 v4, since the na.value rename is unlikely to be the only argument affected, and further palette work driven by the reporting formats government analysts actually publish. As a sibling to aftables in the same Analysis Function family, it is likely to keep tracking that guidance rather than setting its own direction.

C
crandep
INFRA · APIS
0.0

Half CRAN dependency scraper, half extreme-value modelling kit — and the scraper half keeps finding bugs.

◆ Current state

crandep does two jobs that rarely share a package: it harvests the CRAN dependency network, and it fits power-law and extreme-value mixture models to the resulting degree distributions. The 2024 releases were all model work — profile posteriors, wrappers, a constrained variant, a TZP-power-law mixture between the two- and three-component models. The 2025 releases are entirely the other half, fixing what the harvester was silently getting wrong.

◆ Where it's heading

The modelling side has settled into a family of mixtures with matching wrapper and profile-posterior functions, and has not gained a new component since mid-2024. Attention has shifted to data quality in the scraper, where two consecutive releases dealt with the same class of problem: rows that should not exist because of trailing commas in CRAN's own metadata, and rows that should exist but did not because orphan packages have no edges. For a package whose science is degree distributions, missing isolated nodes is a modelling error, not a formatting one.

◆ Prediction

Expect further hardening against CRAN metadata quirks in the harvesting functions; the mixture-model side looks feature-complete and is likely to stay quiet unless a new component model is published.

Alternatives to afcharts and crandep

Other Infra & APIs 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 afcharts or crandep.

See all afcharts alternatives → · See all crandep alternatives →

Recent activity from afcharts and crandep

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

  1. 5mo agoafchartsSequential palette reaches five shades for quintile data
  2. 1y agocrandepDependency harvest split in two so orphan packages stop disappearing
  3. 1y agocrandepTrailing commas in CRAN metadata no longer produce empty-name rows
  4. 1y agoafchartsNamespace and argument-passing fixes
  5. 1y agoafchartsFirst release, derived from sgplot
  6. 2y agocrandepConstrained two-component mixture with continuity at the threshold
  7. 2y agocrandepArgument names normalised to x_max; MCMC wrapper defaults set
  8. 2y agocrandepTZP-power-law mixture fills the gap between the 2- and 3-component models
  9. 2y agocrandepProfile posteriors and chained MCMC wrappers for the mixture models

Frequently asked questions

What is the difference between afcharts and crandep?

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

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. afcharts and crandep 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 Infra & APIs products to evaluate alongside.

What are the best alternatives to afcharts?

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

What are the best alternatives to crandep?

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