diff --git a/module2/exo3/exercice_fr.Rmd b/module2/exo3/exercice_fr.Rmd index ce97cea2db8be429ce3a49961211ea36e4261702..fa7e1a3ef501f2088bc0609ef8eef3b8428e1d0f 100644 --- a/module2/exo3/exercice_fr.Rmd +++ b/module2/exo3/exercice_fr.Rmd @@ -34,4 +34,12 @@ ggplot(data, aes(x, y)) + geom_line(color="blue") ``` +### Histogramme avec ggplot2 +```{r} +ggplot(data, aes(y)) + + geom_histogram(color="black", + fill="blue", + binwidth = 2.5, + alpha=0.5) +``` diff --git a/module2/exo3/exercice_fr.html b/module2/exo3/exercice_fr.html index 32c788699b35e60dc5db93fcc6a87f3237183714..b56da9d523c1bcd85dea9fe8c99c0f0d4d101e95 100644 --- a/module2/exo3/exercice_fr.html +++ b/module2/exo3/exercice_fr.html @@ -387,6 +387,15 @@ ggplot(data, aes(x, y)) + geom_line(color="blue")

+
+

Histogramme avec ggplot2

+
ggplot(data, aes(y)) + 
+  geom_histogram(color="black", 
+                 fill="blue",
+                 binwidth = 2.5,
+                 alpha=0.5)
+

+