StatisticsNZ / simplevis

Simple visualisation with ggplot2 and leaflet wrappers
https://StatisticsNZ.github.io/simplevis
Other
86 stars 11 forks source link

gg_plot legends of numeric col_vars should be in descending order #428

Closed davidhodge931 closed 2 years ago

davidhodge931 commented 2 years ago

https://xdgov.github.io/data-design-standards/components/legends

This affects gg and leaf functions

Whenever continuous, bin or quantile, legends should be in descending order so values at the top are higher and values at the bottom are lower

davidhodge931 commented 2 years ago

Correct

image

Incorrect

image
davidhodge931 commented 2 years ago

Use col_rev argument to help users that put legend on bottom