unhcrthemes
UNHCR 'ggplot2' Theme and Colour Palettes
UNHCR's chart theme re-based itself on a new house standard, then lost its font pipeline to CRAN attrition.
◆Recent moves
- 11mo ago
Font pipeline rebuilt on systemfonts, PDF embedding lost
A breaking change forced from outside: extrafont is dropped ahead of Rttf2pt1's CRAN removal, lato_registered() is deleted and import_lato() now routes through systemfonts alone. The release notes are unusually candid that this costs users embedded Lato in PDF output, leaving system-installed fonts as the fallback.
View source ↗ - 1y ago
Theme and palettes rebuilt on the 2025 UNHCR guidelines
⚡ SPARKThe package re-bases on the 2025 UNHCR Data Visualization Guidelines rather than adding to what it had: theme text and gridline colours change, existing palettes are revised, and new categorical, sequential and diverging ramps arrive. This is the release the rest of the recent history orbits, and it puts the older colours on notice.
View source ↗ - 1y ago
Legend placement defaults and deprecated scale argument dropped
Small legend placement defaults in theme_unhcr() and the removal of ggplot2's deprecated scale_name argument from the three scale constructors. Upkeep against upstream deprecations in the months before the guidelines refresh.
View source ↗ - 2y ago
Sans fallback when Lato is unavailable
Adds sans as a fallback when Lato cannot be installed. A one-line robustness fix, and an early sign that font availability is this package's most persistent weak point.
View source ↗ - 2y ago
CRAN resubmission with documentation fixes
A CRAN resubmission clearing review comments: DESCRIPTION quoting, the UNHCR acronym spelled out, and @return tags added to four exported functions. Process work with no effect on output.
View source ↗