forked from LeCoinStat/WAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WAS_Episode1_Bien_Demarrer_Avec_Rmarkdown.Rmd
106 lines (72 loc) · 1.86 KB
/
WAS_Episode1_Bien_Demarrer_Avec_Rmarkdown.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
title: "WAS episode 1"
output:
html_document:
toc: yes
number_sections: yes
word_document:
toc: yes
date: "2023-07-09"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# Travailler avec du texte
## Rmarkdown permet de faire la documentation automatique
## Flexibilité
Bienvenu sur LeCoinStat
## Ecrire en gras
**Ceci est un texte en gras**
## Metre un texte en italique
*Ceci est un texte en italique*
## Mettre à la fois en gras et en italique
***Ceci est un texte en gras et en italique***
## Intégrer une image dans la doc
Voici le début du challege ![WAS](/Users/natachanjongwayepnga/Documents/LeCoinStat_WAS/WAS1/WAS.png)
## Mettre des formule mathématique
Un exemple $a+b=c$
## Ajout des liens
Abonnez-vous à la chaine [ici](https://www.youtube.com/@LeCoinStat)
# Intégrer le code avec Rmarkdown
```{r}
data(iris)
head(iris)
```
## Statistique descriptive sur la base
```{r}
#Ceci est le résumé de ma base iris
summary(iris)
```
## Afficher la base
```{r}
iris
```
## Enlever les codes dans le rendu
```{r echo=FALSE}
summary(iris)
```
## Enlever les résultats
```{r message=TRUE, paged.print=TRUE}
iris
```
## Améliorer l'affichage des tableaux
```{r paged.print=TRUE}
library(knitr)
kable(summary(iris))
```
## Mettre en place des graphiques
```{r}
plot(iris$Sepal.Length,iris$Petal.Length)
```
## Mettre en place des graphiques
```{r fig.height=6, fig.width=6}
plot(iris$Sepal.Length,iris$Petal.Length)
```
## Flextable pour améliorer les tableaux
le lien [ici](https://ardata-fr.github.io/flextable-book/)
## Kableextra
le lien [ici](https://cran.r-project.org/web/packages/kableExtra/vignettes/awesome_table_in_html.html)
## Lien vers la documentation markdown
Le lien [ici](https://bookdown.org/yihui/rmarkdown/)
## Pour télécharger automatiquement un fichier pdf
Utiliser la librairie tinytex