Skip to content

Commit

Permalink
update geodata and exercices
Browse files Browse the repository at this point in the history
  • Loading branch information
rCarto committed Oct 8, 2024
1 parent 9c1d3e4 commit 5cc7ea1
Show file tree
Hide file tree
Showing 55 changed files with 693 additions and 395 deletions.
11 changes: 8 additions & 3 deletions 01_mapsf.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,16 @@ Associées aux fonctions de représentation des données d’autres fonctions so

## Exercice {.unnumbered}

1. Installez le package `mapsf`.
1. Les données utilisées dans ce document sont stockées dans un projet RStudio.
Vous devez le télécharger puis le décompresser sur votre machine. Il vous sera ensuite possible de tester l'ensemble des manipulations proposées dans ce document au sein du projet **geodata**.
[Télécharger le projet](https://rcarto.github.io/cartographie_avec_r/geodata.zip){.btn .btn-primary .btn-sm role="button"}

2. Quelle est la version du package?
2. Nous utiliserons principalement le package `mapsf` dans la suite de ce document.
Installez le en utilisant la fonction `install.packages()`.

3. Quelles sont les nouveautés par rapport à la version précédente?
3. Quelle est la version du package?

4. Quelles sont les nouveautés par rapport à la version précédente?



7 changes: 6 additions & 1 deletion 03_types_de_cartes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ La fonction `mf_map(..., type = "choro")` permet de créer des cartes choroplèt

```{r choro}
# Densité de population (hab./km2) en utilisant la fonction sf::st_area()
com$DENS <- 1e6 * com$POP / as.numeric(st_area(com))
com$DENS <- 1e6 * com$POPULATION / as.numeric(st_area(com))
mf_map(
x = com,
var = "DENS",
Expand Down Expand Up @@ -255,3 +255,8 @@ mf_title("Distribution de la population dans le Lot (2018)")

5. Créer une carte de la part de la population active dans la population totale.
Quel mode de représentation utiliser? Quels choix cela implique-t-il?


:::{.callout-note}
Vous pouvez utiliser le fichier **exo_cartographie_simple.R** pour vous guider dans cette exercice.
:::
9 changes: 7 additions & 2 deletions 04_mise_en_page.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ dev.off()
```

![com_default.png](img/com_default.png)
![](img/com_default.png)

L'emprise de cette carte est exactement celle de la région affichée.

Expand All @@ -347,7 +347,7 @@ mf_title("Le Lot")
dev.off()
```

![com_expand.png](img/com_expand.png)
![](img/com_expand.png)

:::{.callout-note}
## Vignette
Expand Down Expand Up @@ -483,3 +483,8 @@ mf_title("Le Lot dans le Monde!")
8. Exportez la carte au format PNG avec 800 pixels de large.

9. Comment rendre la carte plus intelligible ? Allez-y !


:::{.callout-note}
Vous pouvez utiliser le fichier **exo_cartographie_mise_en_page.R** pour vous guider dans cette exercice.
:::
6 changes: 0 additions & 6 deletions 08_sessionInfo.Rmd

This file was deleted.

14 changes: 7 additions & 7 deletions Exercices.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Exercices.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ knitr:

# mapsf

1. Installez le package `mapsf`.
2. Installez le package `mapsf`.


```{r}
#| eval: false
install.packages("mapsf")
```

2. Quelle est la version du package?
3. Quelle est la version du package?

```{r}
packageVersion("mapsf")
```

3. Quelles sont les nouveautés par rapport à la version précédente?
4. Quelles sont les nouveautés par rapport à la version précédente?

Voir sur le [*changelog*](https://riatelab.github.io/mapsf/news/) sur le site du package.
Voir le [*changelog*](https://riatelab.github.io/mapsf/news/) sur le site du package.

# La sémiologie graphique

Expand Down
1 change: 1 addition & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ format:
colorlinks: true
callout-appearance: simple
callout-icon: false
fig-format: png
theme: cosmo
pagetitle: "Cartographie avec R"
author-meta: "Timothée Giraud et Hugues Pecout"
Expand Down
5 changes: 4 additions & 1 deletion docs/01_mapsf.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ <h2 data-number="1.2" class="anchored" data-anchor-id="documentation"><span clas
<section id="exercice" class="level2 unnumbered">
<h2 class="unnumbered anchored" data-anchor-id="exercice">Exercice</h2>
<ol type="1">
<li><p>Installez le package <code>mapsf</code>.</p></li>
<li><p>Les données utilisées dans ce document sont stockées dans un projet RStudio. Vous devez le télécharger puis le décompresser sur votre machine. Il vous sera ensuite possible de tester l’ensemble des manipulations proposées dans ce document au sein du projet <strong>geodata</strong>.<br>
<a href="https://rcarto.github.io/cartographie_avec_r/geodata.zip" class="btn btn-primary btn-sm" role="button">Télécharger le projet</a></p></li>
<li><p>Nous utiliserons principalement le package <code>mapsf</code> dans la suite de ce document.<br>
Installez le en utilisant la fonction <code>install.packages()</code>.</p></li>
<li><p>Quelle est la version du package?</p></li>
<li><p>Quelles sont les nouveautés par rapport à la version précédente?</p></li>
</ol>
Expand Down
191 changes: 99 additions & 92 deletions docs/03_types_de_cartes.html

Large diffs are not rendered by default.

278 changes: 137 additions & 141 deletions docs/04_mise_en_page.html

Large diffs are not rendered by default.

Binary file modified docs/Cartographie-avec-R.pdf
Binary file not shown.
536 changes: 409 additions & 127 deletions docs/Exercices.html

Large diffs are not rendered by default.

Binary file modified docs/figs/annot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/carton-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/choro-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/choroprop-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/credit-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/discr2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/discr3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/dorling-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/dougenik-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/init_map-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/inset-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/labs-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/layout1-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/legends-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/linemap-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/logo-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/mf_base-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/mfrow0-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/north-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/olson-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/pal1-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/pal1-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/pal2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/proportional_symbols-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/shadow-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/tanaka-1.png
Binary file modified docs/figs/them1-1.png
Binary file modified docs/figs/them1-2.png
Binary file modified docs/figs/them1-3.png
Binary file modified docs/figs/them1-4.png
Binary file modified docs/figs/theme2-1.png
Binary file modified docs/figs/theme2-2.png
Binary file modified docs/figs/title-1.png
Binary file modified docs/figs/title_custom-1.png
Binary file modified docs/figs/typo_order-1.png
Binary file modified docs/figs/typo_simple-1.png
Binary file modified docs/figs/typoprop-1.png
Binary file modified docs/figs/unnamed-chunk-2-1.png
Binary file modified docs/geodata.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ <h1 class="title">Cartographie avec R</h1>
<div>
<div class="quarto-title-meta-heading">Date de publication</div>
<div class="quarto-title-meta-contents">
<p class="date">7 oct. 2024</p>
<p class="date">8 oct. 2024</p>
</div>
</div>

Expand Down
12 changes: 6 additions & 6 deletions docs/search.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
</url>
<url>
<loc>https://rcarto.github.io/rcarto/cartographie_avec_r/01_mapsf.html</loc>
<lastmod>2024-10-07T09:50:53.988Z</lastmod>
<lastmod>2024-10-08T08:32:49.956Z</lastmod>
</url>
<url>
<loc>https://rcarto.github.io/rcarto/cartographie_avec_r/02_semiologie.html</loc>
<lastmod>2024-10-07T09:50:53.988Z</lastmod>
</url>
<url>
<loc>https://rcarto.github.io/rcarto/cartographie_avec_r/03_types_de_cartes.html</loc>
<lastmod>2024-10-07T09:50:53.988Z</lastmod>
<lastmod>2024-10-08T09:05:01.408Z</lastmod>
</url>
<url>
<loc>https://rcarto.github.io/rcarto/cartographie_avec_r/04_mise_en_page.html</loc>
<lastmod>2024-10-07T09:50:53.988Z</lastmod>
<lastmod>2024-10-08T09:35:23.564Z</lastmod>
</url>
<url>
<loc>https://rcarto.github.io/rcarto/cartographie_avec_r/04_cartes_3D.html</loc>
Expand All @@ -38,6 +38,6 @@
</url>
<url>
<loc>https://rcarto.github.io/rcarto/cartographie_avec_r/Cartographie-avec-R.pdf</loc>
<lastmod>2024-10-07T15:43:53.552Z</lastmod>
<lastmod>2024-10-08T10:27:12.576Z</lastmod>
</url>
</urlset>
Binary file modified geodata.zip
Binary file not shown.

0 comments on commit 5cc7ea1

Please sign in to comment.