afcharts
Produce Charts Following UK Government Analysis Function Guidance
UK government chart styling in ggplot2, chasing ggplot2 v4 and stretching its palette to five.
◆Recent moves
- 5mo ago
Sequential palette reaches five shades for quintile data
Adds darkest and lightest blues so the sequential palette can represent five categories, which is what deprivation quintiles and similar official statistics need, and renames na_colour to na.value for ggplot2 v4.0.1 compatibility. A reset argument for use_afcharts() and theme_af() honouring earlier styling calls both address the awkwardness of applying styling globally.
View source ↗ - 1y ago
Namespace and argument-passing fixes
Fixes functions that failed when called directly without attaching the package, corrects argument passing from use_afcharts() to theme_af(), and downgrades a warning to a message when a two-colour palette substitutes for the main one. Small corrections to how the package behaves when used in less conventional ways.
View source ↗ - 1y ago
First release, derived from sgplot
The initial release, described as based on sgplot, bringing that styling work under the Analysis Function name. A rebrand of an existing codebase rather than new capability entering the ecosystem, which is the same move aftables made when it was renamed from a11ytables.
View source ↗