Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: relatively colour-blind safe and accessible defaults #856

Closed
davidhodge931 opened this issue May 13, 2024 · 0 comments
Closed

docs: relatively colour-blind safe and accessible defaults #856

davidhodge931 opened this issue May 13, 2024 · 0 comments

Comments

@davidhodge931
Copy link
Owner

14. Relatively colour-blind safe and accessible defaults

The default colour/fill scale palettes (i.e. col_palette_d and col_palette_c) and NA colours are relatively colour-blind safe.

jumble is most accessible on a light background, as the navy colour works less well on a dark background.

The 7th colour of the jumble palette is the same as the default discrete NA colour. So it won't work for plotting 7 values/levels and NA values.

#default discrete palette
colorspace::swatchplot(jumble, cvd = TRUE)
#default continuous scale palette (and default NA colour)
colorspace::swatchplot(c(viridisLite::mako(9), 
                         colorspace::darken(grey, 0.25)), cvd = TRUE)
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

No branches or pull requests

1 participant