Skip to content

Added heatmaps for statgl_plot#42

Merged
emilmalta merged 3 commits into
StatisticsGreenland:masterfrom
emilmalta:master
May 26, 2026
Merged

Added heatmaps for statgl_plot#42
emilmalta merged 3 commits into
StatisticsGreenland:masterfrom
emilmalta:master

Conversation

@emilmalta

Copy link
Copy Markdown
Collaborator

type = "heatmap" is opt-in. Maps x and y to the categorical axes and a new value argument to cell colour via a continuous hc_colorAxis ramped from palette. Cell labels are printed when show_last_value = TRUE, using color = "contrast" so they stay readable across the colour range. Tooltip resolves x/y indices through xAxis.categories/yAxis.categories and reads this.point.value.

group, pyramid, and highlight are not supported on heatmaps and now error or warn explicitly.

The negative-y check is skipped in for all else save pyramids.

@emilmalta emilmalta merged commit 3c94b48 into StatisticsGreenland:master May 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant