← Back to home
Comparison · Infra & APIs

afcharts vs nuggets

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

afcharts vs nuggets: at a glance

Featureafchartsnuggets
SectorInfra & APIsInfra & APIs
Velocity score0.05.0
Sparks · 30d00
Top themesdata-visualisation, government-statistics, ggplot2, colour-palettespattern-mining, association-rules, performance, r-package
Last editorial update1d ago16h 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 nuggets?

A pattern-mining package that keeps making its own search cheaper rather than wider.

nuggets is an R package for searching data for conditional patterns - association rules, contrast patterns, correlations - through its dig*() family. The 2.2.x line has settled into a steady rhythm of making that search faster and more inspectable rather than adding new pattern types. 2.2.3 adds permute(), improves axiom-based filtering in the excluded argument, and attaches a search_stats attribute to every dig*() result, so the cost of a search is now reported alongside its output.

Read the full nuggets trajectory →

afcharts vs nuggets: 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.

N
nuggets
INFRA · APIS
5.0

A pattern-mining package that keeps making its own search cheaper rather than wider.

◆ Current state

nuggets is an R package for searching data for conditional patterns - association rules, contrast patterns, correlations - through its dig*() family. The 2.2.x line has settled into a steady rhythm of making that search faster and more inspectable rather than adding new pattern types. 2.2.3 adds permute(), improves axiom-based filtering in the excluded argument, and attaches a search_stats attribute to every dig*() result, so the cost of a search is now reported alongside its output.

◆ Where it's heading

The arc since 2.1.0 runs toward a leaner, faster core. Dependencies went first - Shiny moved to Suggests, BH and RcppThread dropped - then the search itself: 2.2.2 brought a sparse bit chain, and 2.2.3 adds condition-prefix handling and caching of conjunction supports. New user-facing surface arrives in small, single-function increments (dig_ancestors(), cluster_associations(), now permute()) rather than in themed releases. The search_stats attribute is the first move toward letting users see why a search was expensive rather than only how long it took.

◆ Prediction

Expect the next release to continue in the same shape - another caching or pruning refinement to the dig*() core plus one or two helper functions. The search_stats attribute is the kind of instrumentation that usually precedes tuning controls, so surfacing knobs for the new prefix and support caches is the plausible follow-up.

Alternatives to afcharts and nuggets

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

See all afcharts alternatives → · See all nuggets alternatives →

Recent activity from afcharts and nuggets

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

  1. 1d agonuggetspermute() added; dig*() caches conjunction supports, reports search_stats
  2. 1mo agonuggetsSparse bit chain speeds dig(); explore() gains clustering
  3. 2mo agonuggetspartition() gains .subsets; geom_diamond() layout improved
  4. 5mo agonuggetsexplore() covers contrasts and correlations; dig_ancestors() added
  5. 5mo agoafchartsSequential palette reaches five shades for quintile data
  6. 6mo agonuggetsCritical explore() bug fixed; is_logicalish() added
  7. 6mo agonuggetsShiny deps moved to Suggests; BH and RcppThread dropped
  8. 1y agoafchartsNamespace and argument-passing fixes
  9. 1y agoafchartsFirst release, derived from sgplot

Frequently asked questions

What is the difference between afcharts and nuggets?

They serve adjacent needs but don't currently overlap on shipped themes. nuggets is currently shipping more aggressively (velocity 5.0 vs 0.0), with 0 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is afcharts better than nuggets?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. nuggets is currently shipping more aggressively (velocity 5.0 vs 0.0), with 0 editorial sparks in the last 30 days against 0. 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 nuggets?

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