Skip to content
Snippets Groups Projects
Commit 682f7a77 authored by hpolvech's avatar hpolvech
Browse files

colorblind1

parent 569349b3
No related branches found
No related tags found
No related merge requests found
......@@ -456,6 +456,13 @@ ggplot(data = mpg, mapping = aes(x = displ, y = hwy, color = class)) +
</p>
</details>
The choice of colors is very important for the comprehension of a graphic. Some palettes are not suitable for everyone. For example, for people with color blindness, color gradients from green to red, or from yellow to blue should be avoided.
To display only Brewer palettes that are colorblind friendly, specify the option `colorblindFriendly = TRUE` as follows:
```{r colorblindBrewer}
display.brewer.all(colorblindFriendly = TRUE)
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment