From 5c23473d7469aa080bf29d7a981283f049402ce3 Mon Sep 17 00:00:00 2001 From: 274a20f162e271e8246667efe0c200af <274a20f162e271e8246667efe0c200af@app-learninglab.inria.fr> Date: Wed, 24 Feb 2021 13:25:38 +0000 Subject: [PATCH] modif allure graphiques --- module2/exo3/exercice_fr.Rmd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module2/exo3/exercice_fr.Rmd b/module2/exo3/exercice_fr.Rmd index 93dbe87..41b5029 100644 --- a/module2/exo3/exercice_fr.Rmd +++ b/module2/exo3/exercice_fr.Rmd @@ -19,10 +19,12 @@ data <- c(14.0, 7.6, 11.2, 12.8, 12.5, 9.9, 14.9, 9.4, 16.9, 10.2, 14.9, 18.1, 7 ## Courbe ```{r} -plot(data, type = "l", col = "blue", ylim = c(0,25), xlab="", ylab="") +plot(data, type = "l", col = "blue", panel.first = grid(), ylim = c(0,25), xlab="", ylab="") +# panel.first = grid() permet d'ajouter un grillage en fond ``` ## Histogramme ```{r} -hist(data, col = "blue", ylim = c(0,25), xlim = c(0,25), xlab="", ylab="", main="") +hist(data, col = "blue", panel.first = grid(), ylim = c(0,25), xlim = c(0,25), xlab="", ylab="", main="") +# + box(col="black") # encadre le graphique mais une erreur apparait ``` \ No newline at end of file -- 2.18.1