From 682f7a775d370dbafb8ff6a42a4ba145c06a0f91 Mon Sep 17 00:00:00 2001
From: hpolvech <helene.polveche@ens-lyon.fr>
Date: Thu, 14 Oct 2021 09:21:21 +0200
Subject: [PATCH] colorblind1

---
 session_4/session_4.Rmd | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/session_4/session_4.Rmd b/session_4/session_4.Rmd
index 27e2c9a..456e4ff 100644
--- a/session_4/session_4.Rmd
+++ b/session_4/session_4.Rmd
@@ -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)
+```
 
 
 
-- 
GitLab