You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inst/tutorials/01-bar-charts_en/01-bar-charts.Rmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,15 +30,15 @@ This tutorial will show you how to make and enhance **bar charts** with the ggpl
30
30
* use **position adjustments**
31
31
* use **facets** to create subplots
32
32
33
-
The tutorial is adapted from _R for Data Science_ by Hadley Wickham and Garrett Grolemund, published by O’Reilly Media, Inc., 2016, ISBN: 9781491910399. You can purchase the book at [shop.oreilly.com](http://shop.oreilly.com/product/0636920034407.do){target="_blank}.
33
+
The tutorial is adapted from _R for Data Science_ by Hadley Wickham and Garrett Grolemund, published by O’Reilly Media, Inc., 2016, ISBN: 9781491910399. You can purchase the book at [shop.oreilly.com](http://shop.oreilly.com/product/0636920034407.do){target="_blank"}.
34
34
35
35
The tutorial uses the ggplot2 and dplyr packages, which have been pre-loaded for your convenience.
36
36
37
37
## Bar Charts
38
38
39
39
### How to make a bar chart
40
40
41
-
To make a bar chart with ggplot2, add `geom_bar()` to the [ggplot2 template](https://tutorials.shinyapps.io/02-Vis-Basics/){target="_blank}. For example, the code below plots a bar chart of the `cut` variable in the `diamonds` dataset, which comes with ggplot2.
41
+
To make a bar chart with ggplot2, add `geom_bar()` to the [ggplot2 template](https://tutorials.shinyapps.io/02-Vis-Basics/){target="_blank"}. For example, the code below plots a bar chart of the `cut` variable in the `diamonds` dataset, which comes with ggplot2.
Copy file name to clipboardExpand all lines: inst/tutorials/01-bar-charts_fr/01-bar-charts-fr.Rmd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Ce module va vous montrer comment créer et mettre en valeur des **diagrammes en
31
31
32
32
* utiliser des **facettes** pour créer des sous-graphiques.
33
33
34
-
Ce module est tiré du livre de _R for Data Science_ par Hadley Wickham et Garrett Grolemund, publié par O’Reilly Media, Inc., 2016, ISBN: 9781491910399. Vous pouvez obtenir le livre à ici : [shop.oreilly.com](http://shop.oreilly.com/product/0636920034407.do){target="_blank}.
34
+
Ce module est tiré du livre de _R for Data Science_ par Hadley Wickham et Garrett Grolemund, publié par O’Reilly Media, Inc., 2016, ISBN: 9781491910399. Vous pouvez obtenir le livre à ici : [shop.oreilly.com](http://shop.oreilly.com/product/0636920034407.do){target="_blank"}.
35
35
36
36
Ce module utilise les packages {ggplot2} et {dplyr}, qui ont été pré-installés.
Copy file name to clipboardExpand all lines: inst/tutorials/01-exploratory-data-analysis_en/01-Exploratory-Data-Analysis.Rmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ This tutorial will show you how to explore your data in a systematic way, a task
29
29
* Practice finding patterns in data
30
30
* Get tips about how to use different types of plots to explore data
31
31
32
-
The tutorial is excerpted from _R for Data Science_ by Hadley Wickham and Garrett Grolemund, published by O’Reilly Media, Inc., 2016, ISBN: 9781491910399. You can purchase the book at [shop.oreilly.com](http://shop.oreilly.com/product/0636920034407.do){target="_blank}.
32
+
The tutorial is excerpted from _R for Data Science_ by Hadley Wickham and Garrett Grolemund, published by O’Reilly Media, Inc., 2016, ISBN: 9781491910399. You can purchase the book at [shop.oreilly.com](http://shop.oreilly.com/product/0636920034407.do){target="_blank"}.
33
33
34
34
## Exploratory Data Analysis
35
35
@@ -301,7 +301,7 @@ Again, don't be concerned if you do not know how to make these graphs. For now,
301
301
You can plot the relationship between one continuous and one categorical variable with a boxplot:
302
302
303
303
```{r echo = FALSE, out.width = "100%"}
304
-
ggplot(mpg) +
304
+
ggplot(data = mpg) +
305
305
aes(reorder(class, hwy, median), hwy) +
306
306
geom_boxplot() +
307
307
ggtitle("Pickup trucks and SUVs display the lowest fuel efficiency") +
Copy file name to clipboardExpand all lines: inst/tutorials/01-reshape-data_en/01-Reshape-Data.Rmd
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ On the contrary, data are said to be 'in a wide format' if the same observation
80
80
knitr::include_graphics("www/images/wide.png")
81
81
```
82
82
83
-
This tutorial uses the [core tidyverse packages](http://tidyverse.org/){target="_blank}, including {ggplot2}, {dplyr}, and {tidyr}, as well as the `babynames` package. All of these packages have been pre-installed and pre-loaded for your convenience.
83
+
This tutorial uses the [core tidyverse packages](http://tidyverse.org/){target="_blank"}, including {ggplot2}, {dplyr}, and {tidyr}, as well as the `babynames` package. All of these packages have been pre-installed and pre-loaded for your convenience.
84
84
85
85
Click the Next Topic button to begin.
86
86
@@ -276,7 +276,7 @@ In the following sections, you will learn about the functions:
276
276
277
277
We'll come back to this later, but here's an overview of how these two functions work:
Copy file name to clipboardExpand all lines: inst/tutorials/01-reshape-data_fr/01-Reshape-Data-fr.Rmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ Au contraire, des données sont dites 'dans un format large' (*wide* en anglais)
68
68
knitr::include_graphics("www/images/wide.png")
69
69
```
70
70
71
-
Ce module utilise les [packages qui composent le coeur du tidyverse ](http://tidyverse.org/){target="_blank}, notamment {ggplot2}, {dplyr} et {tidyr}. Nous utiliserons également le package `{prenoms}` made in ThinkR (voir [ici](https://github.com/ThinkR-open/prenoms){target="_blank} pour l'installer). Tous ces packages ont été préinstallés et préchargés pour vous dans ce module. Nul besoin donc de les installer et les charger de nouveau.
71
+
Ce module utilise les [packages qui composent le coeur du tidyverse ](http://tidyverse.org/){target="_blank"}, notamment {ggplot2}, {dplyr} et {tidyr}. Nous utiliserons également le package `{prenoms}` made in ThinkR (voir [ici](https://github.com/ThinkR-open/prenoms){target="_blank"} pour l'installer). Tous ces packages ont été préinstallés et préchargés pour vous dans ce module. Nul besoin donc de les installer et les charger de nouveau.
72
72
73
73
Cliquez sur le bouton pour commencer.
74
74
@@ -263,7 +263,7 @@ Dans les sections suivantes, vous allez découvrir les fonctions :
263
263
264
264
Nous y reviendrons par la suite, mais voici un aperçu du fonctionnement de ces deux fonctions :
Copy file name to clipboardExpand all lines: inst/tutorials/01-tibbles_en/01-tibbles.Rmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ In the tutorials, we'll use a dataset named `babynames`, which comes in a packag
47
47
48
48
This tutorial introduces `babynames` as well as a new data structure that makes working with data in R easy: the tibble.
49
49
50
-
In addition to `babynames`, this tutorial uses the [core tidyverse packages](http://tidyverse.org/){target="_blank}, including ggplot2, tibble, and dplyr. All of these packages have been pre-installed for your convenience. But they haven't been pre-loaded---something you will soon learn more about!
50
+
In addition to `babynames`, this tutorial uses the [core tidyverse packages](http://tidyverse.org/){target="_blank"}, including ggplot2, tibble, and dplyr. All of these packages have been pre-installed for your convenience. But they haven't been pre-loaded---something you will soon learn more about!
51
51
52
52
Click the Next Topic button to begin.
53
53
@@ -168,7 +168,7 @@ View(babynames)
168
168
169
169
### The tidyverse
170
170
171
-
The tibble package is one of several packages that are known collectively as ["the tidyverse"](http://tidyverse.org){target="_blank}. Tidyverse packages share a common philosophy and are designed to work well together. For example, in this tutorial you will use the **tibble** package, the **ggplot2** package, and the **dplyr** package, all of which belong to the tidyverse.
171
+
The tibble package is one of several packages that are known collectively as ["the tidyverse"](http://tidyverse.org){target="_blank"}. Tidyverse packages share a common philosophy and are designed to work well together. For example, in this tutorial you will use the **tibble** package, the **ggplot2** package, and the **dplyr** package, all of which belong to the tidyverse.
Copy file name to clipboardExpand all lines: inst/tutorials/01-tibbles_fr/01-tibbles-fr.Rmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,11 @@ Dans ce module, vous allez explorer la popularité de différents prénoms au fi
35
35
36
36
Ce sont quelques-unes des fonctions R les plus utiles pour la data science, et les modules qui suivent vous fourniront tout ce dont vous avez besoin pour apprendre à les manipuler.
37
37
38
-
Dans les modules, nous utiliserons un jeu de données nommé `prenoms`, qui est fourni dans le package également nommé **{prenoms}** made in ThinkR (voir [ici](https://github.com/ThinkR-open/prenoms){target="_blank} pour l'installer). Dans `prenoms`, vous trouverez des informations sur presque tous les prénoms donnés aux enfants en France métropolitaine depuis 1900.
38
+
Dans les modules, nous utiliserons un jeu de données nommé `prenoms`, qui est fourni dans le package également nommé **{prenoms}** made in ThinkR (voir [ici](https://github.com/ThinkR-open/prenoms){target="_blank"} pour l'installer). Dans `prenoms`, vous trouverez des informations sur presque tous les prénoms donnés aux enfants en France métropolitaine depuis 1900.
39
39
40
40
Ce module présente `prenoms` ainsi qu'une nouvelle structure de données qui facilite l'utilisation des données dans R : le tibble.
41
41
42
-
En plus de `{prenoms}`, ce module utilise les [packages de base du tidyverse](http://tidyverse.org/){target="_blank}, notamment {ggplot2}, {tibble} et {dplyr}. Tous ces packages ont été préinstallés mais ils n'ont pas été préchargés.
42
+
En plus de `{prenoms}`, ce module utilise les [packages de base du tidyverse](http://tidyverse.org/){target="_blank"}, notamment {ggplot2}, {tibble} et {dplyr}. Tous ces packages ont été préinstallés mais ils n'ont pas été préchargés.
43
43
44
44
Cliquez sur le bouton "Suivant" pour commencer.
45
45
@@ -157,7 +157,7 @@ View(prenoms)
157
157
158
158
### Le tidyverse
159
159
160
-
Le package `{tibble}` est l'un des nombreux packages du ["tidyverse"](http://tidyverse.org){target="_blank}. Les packages du tidyverse partagent une philosophie commune et sont conçus pour bien fonctionner ensemble. Par exemple, dans ce module, vous utiliserez le package **{tibble}**, le package **{ggplot2}** et le package **{dplyr}**, qui appartiennent tous au tidyverse.
160
+
Le package `{tibble}` est l'un des nombreux packages du ["tidyverse"](http://tidyverse.org){target="_blank"}. Les packages du tidyverse partagent une philosophie commune et sont conçus pour bien fonctionner ensemble. Par exemple, dans ce module, vous utiliserez le package **{tibble}**, le package **{ggplot2}** et le package **{dplyr}**, qui appartiennent tous au tidyverse.
Copy file name to clipboardExpand all lines: inst/tutorials/02-exploratory-data-analysis_fr/02-Exploratory-Data-Analysis-fr.Rmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Ce module va vous montrer comment explorer vos données de façon systématique
29
29
30
30
* Assimiler des astuces pour déterminer quel type de graphique doit être utilisé pour explorer les données
31
31
32
-
Ce module provient du livre _R for Data Science_ de Hadley Wickham et Garrett Grolemund, publié par O’Reilly Media, Inc., 2016, ISBN: 9781491910399. Vous pouvez vous procurer le livre à [shop.oreilly.com](http://shop.oreilly.com/product/0636920034407.do){target="_blank}.
32
+
Ce module provient du livre _R for Data Science_ de Hadley Wickham et Garrett Grolemund, publié par O’Reilly Media, Inc., 2016, ISBN: 9781491910399. Vous pouvez vous procurer le livre à [shop.oreilly.com](http://shop.oreilly.com/product/0636920034407.do){target="_blank"}.
33
33
34
34
## Analyse exploratoire de donnees
35
35
@@ -288,7 +288,7 @@ diamonds |>
288
288
geom_tile() +
289
289
ggtitle("Gradient de couleur vs. qualité de la taille pour 53940 diamants")
290
290
291
-
ggplot(diamonds) +
291
+
ggplot(data = diamonds) +
292
292
aes(color, cut) +
293
293
geom_count() +
294
294
ggtitle("Gradient de couleur vs. qualité de la taille pour 53940 diamants")
@@ -301,7 +301,7 @@ De nouveau, ne vous inquiétez pas de ne pas savoir comment faire ces graphiques
301
301
Vous pouvez représenter la relation entre une variable continue et une variable catégorielle avec une boîte à moustaches (boxplot) :
302
302
303
303
```{r echo = FALSE, out.width = "100%"}
304
-
ggplot(mpg) +
304
+
ggplot(data = mpg) +
305
305
aes(reorder(class, hwy, median), hwy) +
306
306
geom_boxplot() +
307
307
ggtitle("Pickup et SUV ont la consommation la plus efficace") +
Copy file name to clipboardExpand all lines: inst/tutorials/02-isolating_en/02-isolating.Rmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ In this case study, you will explore the popularity of your own name over time.
38
38
*`arrange()`, which lets you reorder the rows in your data
39
39
*`|>`, which organizes your code into reader-friendly "pipes"
40
40
41
-
This tutorial uses the [core tidyverse packages](http://tidyverse.org/){target="_blank}, including ggplot2, tibble, and dplyr, as well as the `babynames` package. All of these packages have been pre-installed and pre-loaded for your convenience.
41
+
This tutorial uses the [core tidyverse packages](http://tidyverse.org/){target="_blank"}, including ggplot2, tibble, and dplyr, as well as the `babynames` package. All of these packages have been pre-installed and pre-loaded for your convenience.
42
42
43
43
Click the Next Topic button to begin.
44
44
@@ -69,7 +69,7 @@ But before you do, you will need to trim down `babynames`. At the moment, there
69
69
To see what I mean, consider how I made the plot above: I began with the entire data set, which if plotted as a scatterplot would've looked like this.
70
70
71
71
```{r out.width = "60%", cached = TRUE}
72
-
ggplot(babynames) +
72
+
ggplot(data = babynames) +
73
73
aes(x = year, y = prop) +
74
74
geom_point() +
75
75
labs(title = "Popularity of every name in the data set")
@@ -89,7 +89,7 @@ babynames |>
89
89
If I had skipped this step, my line graph would've connected all of the points in the large data set, creating an uninformative graph.
90
90
91
91
```{r out.width = "60%", cached = TRUE}
92
-
ggplot(babynames) +
92
+
ggplot(data = babynames) +
93
93
aes(x = year, y = prop) +
94
94
geom_line() +
95
95
labs(title = "Popularity of every name in the data set")
0 commit comments