Skip to content

Commit

Permalink
update with citations infos
Browse files Browse the repository at this point in the history
  • Loading branch information
rCarto committed Jan 12, 2023
1 parent 2e3f3af commit 21a1613
Show file tree
Hide file tree
Showing 14 changed files with 630 additions and 558 deletions.
28 changes: 28 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Giraud"
given-names: "Timothée"
orcid: "https://orcid.org/0000-0002-1932-3323"
- family-names: "Pecout"
given-names: "Hugues"
orcid: "https://orcid.org/0000-0002-0246-0954"
title: "Géomatique avec R"
version: 1.0.1
doi: 10.5281/zenodo.7528161
date-released: 2023-01-11
url: "https://github.com/rCarto/cartographie_avec_r"
preferred-citation:
type: generic
authors:
- family-names: "Giraud"
given-names: "Timothée"
orcid: "https://orcid.org/0000-0002-1932-3323"
- family-names: "Pecout"
given-names: "Hugues"
orcid: "https://orcid.org/0000-0002-0246-0954"
title: "Cartographie avec R"
version: 1.0.1
doi: 10.5281/zenodo.7528161
year: 2023
url: "https://rcarto.github.io/cartographie_avec_r/"
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,18 @@ Un deuxième manuel centré sur la géomatique est disponible ici :
![](img/by-nc-sa.png)
La version en ligne de ce document est sous licence [Creative Commons Attribution-NonCommercial-ShareAlike 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/).

--------
Pour citer le document :

Giraud, T., & Pecout, H. (2023). Cartographie avec R (Version 1.0.1). https://doi.org/10.5281/zenodo.7528161

```
@misc{Giraud_Cartographie_avec_R_2023,
author = {Giraud, Timothée and Pecout, Hugues},
doi = {10.5281/zenodo.7528161},
title = {{Cartographie avec R}},
url = {https://rcarto.github.io/cartography_avec_r/},
year = {2023}
}
```

Binary file modified docs/Cartographie-avec-R_files/figure-html/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/Cartographie-avec-R_files/figure-html/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/Cartographie-avec-R_files/figure-html/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/Cartographie-avec-R_files/figure-html/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.
16 changes: 13 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h1>
<div id="header">
<h1 class="title">Cartographie avec R</h1>
<p class="author"><em>Timothée Giraud<a href="#fn1" class="footnote-ref" id="fnref1"><sup>1</sup></a> &amp; Hugues Pecout<a href="#fn2" class="footnote-ref" id="fnref2"><sup>2</sup></a></em></p>
<p class="date"><em>11 janvier 2023</em></p>
<p class="date"><em>12 janvier 2023</em></p>
</div>
<div id="préambule" class="section level1 unnumbered hasAnchor">
<h1>Préambule<a href="index.html#préambule" class="anchor-section" aria-label="Anchor link to header"></a></h1>
Expand All @@ -273,13 +273,23 @@ <h1>Préambule<a href="index.html#préambule" class="anchor-section" aria-label=
<p></br>
<img src="img/by-nc-sa.png" alt="Creative Commons License" /><br />
La version en ligne de ce document est sous licence <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0</a>.</p>
<hr />
<p><strong>Pour citer le document :</strong></p>
<p>Giraud, T., &amp; Pecout, H. (2023). Cartographie avec R (Version 1.0.1). <a href="https://doi.org/10.5281/zenodo.7528161" class="uri">https://doi.org/10.5281/zenodo.7528161</a></p>
<pre><code>@misc{Giraud_Cartographie_avec_R_2023,
author = {Giraud, Timothée and Pecout, Hugues},
doi = {10.5281/zenodo.7528161},
title = {{Cartographie avec R}},
url = {https://rcarto.github.io/cartography_avec_r/},
year = {2023}
}</code></pre>

</div>
<div class="footnotes">
<hr />
<ol start="1">
<li id="fn1"><p>UMS RIATE, CNRS, Université Paris Cité, F-75013 Paris, France<a href="#fnref1" class="footnote-back">↩︎</a></p></li>
<li id="fn2"><p>FR CIST, CNRS, F-75013 Paris, France<a href="#fnref2" class="footnote-back">↩︎</a></p></li>
<li id="fn1"><p>UAR RIATE, CNRS, Université Paris Cité, F-75013 Paris, France<a href="#fnref1" class="footnote-back">↩︎</a></p></li>
<li id="fn2"><p>UMR Géographie-cités, CNRS, F-93322 Aubervilliers, France<a href="#fnref2" class="footnote-back">↩︎</a></p></li>
</ol>
</div>
</section>
Expand Down
574 changes: 287 additions & 287 deletions docs/la-mise-en-page.html

Large diffs are not rendered by default.

128 changes: 64 additions & 64 deletions docs/les-cartes-en-3d.html

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions docs/les-transformations-cartographiques.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,19 +288,19 @@ <h2><span class="header-section-number">5.1</span> Les cartogrammes de Dorling<a
La perception des quantités est très bonne.
Les tailles de cercles sont vraiment comparables.
</div>
<div class="sourceCode" id="cb54"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb54-1"><a href="les-transformations-cartographiques.html#cb54-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(mapsf)</span>
<span id="cb54-2"><a href="les-transformations-cartographiques.html#cb54-2" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(cartogram)</span>
<span id="cb54-3"><a href="les-transformations-cartographiques.html#cb54-3" aria-hidden="true" tabindex="-1"></a>com <span class="ot">&lt;-</span> <span class="fu">st_read</span>(<span class="st">&quot;data/lot46.gpkg&quot;</span>, <span class="at">layer =</span> <span class="st">&quot;commune&quot;</span>, <span class="at">quiet =</span> <span class="cn">TRUE</span>)</span>
<span id="cb54-4"><a href="les-transformations-cartographiques.html#cb54-4" aria-hidden="true" tabindex="-1"></a>com_dorling <span class="ot">&lt;-</span> <span class="fu">cartogram_dorling</span>(<span class="at">x =</span> com, <span class="at">weight =</span> <span class="st">&quot;POPULATION&quot;</span>, <span class="at">k =</span> <span class="dv">7</span>)</span>
<span id="cb54-5"><a href="les-transformations-cartographiques.html#cb54-5" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com_dorling, <span class="at">col =</span> <span class="st">&quot;#940000&quot;</span>, <span class="at">border=</span> <span class="st">&quot;white&quot;</span>)</span>
<span id="cb54-6"><a href="les-transformations-cartographiques.html#cb54-6" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_label</span>(</span>
<span id="cb54-7"><a href="les-transformations-cartographiques.html#cb54-7" aria-hidden="true" tabindex="-1"></a> <span class="at">x =</span> com_dorling[<span class="fu">order</span>(com_dorling<span class="sc">$</span>POPULATION, <span class="at">decreasing =</span> <span class="cn">TRUE</span>), ][<span class="dv">1</span><span class="sc">:</span><span class="dv">10</span>,], </span>
<span id="cb54-8"><a href="les-transformations-cartographiques.html#cb54-8" aria-hidden="true" tabindex="-1"></a> <span class="at">var =</span> <span class="st">&quot;NOM_COM&quot;</span>,</span>
<span id="cb54-9"><a href="les-transformations-cartographiques.html#cb54-9" aria-hidden="true" tabindex="-1"></a> <span class="at">overlap =</span> <span class="cn">FALSE</span>, <span class="at">show.lines =</span> <span class="cn">FALSE</span>,</span>
<span id="cb54-10"><a href="les-transformations-cartographiques.html#cb54-10" aria-hidden="true" tabindex="-1"></a> <span class="at">halo =</span> <span class="cn">TRUE</span>, </span>
<span id="cb54-11"><a href="les-transformations-cartographiques.html#cb54-11" aria-hidden="true" tabindex="-1"></a> <span class="at">r =</span> .<span class="dv">15</span></span>
<span id="cb54-12"><a href="les-transformations-cartographiques.html#cb54-12" aria-hidden="true" tabindex="-1"></a>)</span>
<span id="cb54-13"><a href="les-transformations-cartographiques.html#cb54-13" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_title</span>(<span class="st">&quot;Population du Lot - Cartogramme de Dorling&quot;</span>)</span></code></pre></div>
<div class="sourceCode" id="cb55"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb55-1"><a href="les-transformations-cartographiques.html#cb55-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(mapsf)</span>
<span id="cb55-2"><a href="les-transformations-cartographiques.html#cb55-2" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(cartogram)</span>
<span id="cb55-3"><a href="les-transformations-cartographiques.html#cb55-3" aria-hidden="true" tabindex="-1"></a>com <span class="ot">&lt;-</span> <span class="fu">st_read</span>(<span class="st">&quot;data/lot46.gpkg&quot;</span>, <span class="at">layer =</span> <span class="st">&quot;commune&quot;</span>, <span class="at">quiet =</span> <span class="cn">TRUE</span>)</span>
<span id="cb55-4"><a href="les-transformations-cartographiques.html#cb55-4" aria-hidden="true" tabindex="-1"></a>com_dorling <span class="ot">&lt;-</span> <span class="fu">cartogram_dorling</span>(<span class="at">x =</span> com, <span class="at">weight =</span> <span class="st">&quot;POPULATION&quot;</span>, <span class="at">k =</span> <span class="dv">7</span>)</span>
<span id="cb55-5"><a href="les-transformations-cartographiques.html#cb55-5" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com_dorling, <span class="at">col =</span> <span class="st">&quot;#940000&quot;</span>, <span class="at">border=</span> <span class="st">&quot;white&quot;</span>)</span>
<span id="cb55-6"><a href="les-transformations-cartographiques.html#cb55-6" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_label</span>(</span>
<span id="cb55-7"><a href="les-transformations-cartographiques.html#cb55-7" aria-hidden="true" tabindex="-1"></a> <span class="at">x =</span> com_dorling[<span class="fu">order</span>(com_dorling<span class="sc">$</span>POPULATION, <span class="at">decreasing =</span> <span class="cn">TRUE</span>), ][<span class="dv">1</span><span class="sc">:</span><span class="dv">10</span>,], </span>
<span id="cb55-8"><a href="les-transformations-cartographiques.html#cb55-8" aria-hidden="true" tabindex="-1"></a> <span class="at">var =</span> <span class="st">&quot;NOM_COM&quot;</span>,</span>
<span id="cb55-9"><a href="les-transformations-cartographiques.html#cb55-9" aria-hidden="true" tabindex="-1"></a> <span class="at">overlap =</span> <span class="cn">FALSE</span>, <span class="at">show.lines =</span> <span class="cn">FALSE</span>,</span>
<span id="cb55-10"><a href="les-transformations-cartographiques.html#cb55-10" aria-hidden="true" tabindex="-1"></a> <span class="at">halo =</span> <span class="cn">TRUE</span>, </span>
<span id="cb55-11"><a href="les-transformations-cartographiques.html#cb55-11" aria-hidden="true" tabindex="-1"></a> <span class="at">r =</span> .<span class="dv">15</span></span>
<span id="cb55-12"><a href="les-transformations-cartographiques.html#cb55-12" aria-hidden="true" tabindex="-1"></a>)</span>
<span id="cb55-13"><a href="les-transformations-cartographiques.html#cb55-13" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_title</span>(<span class="st">&quot;Population du Lot - Cartogramme de Dorling&quot;</span>)</span></code></pre></div>
<p><img src="Cartographie-avec-R_files/figure-html/dorling-1.png" width="672" style="display: block; margin: auto;" />
Le paramètre <code>k</code> permet de faire varier le facteur d’expansion des cercles.</p>
</div>
Expand All @@ -317,10 +317,10 @@ <h2><span class="header-section-number">5.2</span> Les cartogrammes non continus
<div class="rmdplus">
La conservation de la forme des polygones est optimale.
</div>
<div class="sourceCode" id="cb55"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb55-1"><a href="les-transformations-cartographiques.html#cb55-1" aria-hidden="true" tabindex="-1"></a>com_ncont <span class="ot">&lt;-</span> <span class="fu">cartogram_ncont</span>(<span class="at">x =</span> com, <span class="at">weight =</span> <span class="st">&quot;POPULATION&quot;</span>, <span class="at">k =</span> <span class="fl">1.2</span>)</span>
<span id="cb55-2"><a href="les-transformations-cartographiques.html#cb55-2" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com, <span class="at">col =</span> <span class="cn">NA</span>, <span class="at">border =</span> <span class="st">&quot;white&quot;</span>, <span class="at">lwd =</span> <span class="fl">0.5</span>,)</span>
<span id="cb55-3"><a href="les-transformations-cartographiques.html#cb55-3" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com_ncont, <span class="at">col =</span> <span class="st">&quot;#940000&quot;</span>, <span class="at">border=</span> <span class="st">&quot;white&quot;</span>, <span class="at">add =</span> <span class="cn">TRUE</span>)</span>
<span id="cb55-4"><a href="les-transformations-cartographiques.html#cb55-4" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_title</span>(<span class="st">&quot;Population du Lot - Cartogramme de Olson&quot;</span>)</span></code></pre></div>
<div class="sourceCode" id="cb56"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb56-1"><a href="les-transformations-cartographiques.html#cb56-1" aria-hidden="true" tabindex="-1"></a>com_ncont <span class="ot">&lt;-</span> <span class="fu">cartogram_ncont</span>(<span class="at">x =</span> com, <span class="at">weight =</span> <span class="st">&quot;POPULATION&quot;</span>, <span class="at">k =</span> <span class="fl">1.2</span>)</span>
<span id="cb56-2"><a href="les-transformations-cartographiques.html#cb56-2" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com, <span class="at">col =</span> <span class="cn">NA</span>, <span class="at">border =</span> <span class="st">&quot;white&quot;</span>, <span class="at">lwd =</span> <span class="fl">0.5</span>,)</span>
<span id="cb56-3"><a href="les-transformations-cartographiques.html#cb56-3" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com_ncont, <span class="at">col =</span> <span class="st">&quot;#940000&quot;</span>, <span class="at">border=</span> <span class="st">&quot;white&quot;</span>, <span class="at">add =</span> <span class="cn">TRUE</span>)</span>
<span id="cb56-4"><a href="les-transformations-cartographiques.html#cb56-4" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_title</span>(<span class="st">&quot;Population du Lot - Cartogramme de Olson&quot;</span>)</span></code></pre></div>
<p><img src="Cartographie-avec-R_files/figure-html/olson-1.png" width="672" style="display: block; margin: auto;" /></p>
<p>Le paramètre <code>k</code> permet de faire varier le facteur d’expansion des polygones.</p>
</div>
Expand All @@ -337,12 +337,12 @@ <h2><span class="header-section-number">5.3</span> Les cartogrammes continus<a h
<div class="rmdplus">
C’est une “vraie carte de géographie” : la topologie et la contiguïté sont conservées.
</div>
<div class="sourceCode" id="cb56"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb56-1"><a href="les-transformations-cartographiques.html#cb56-1" aria-hidden="true" tabindex="-1"></a>com_cont <span class="ot">&lt;-</span> <span class="fu">cartogram_cont</span>(<span class="at">x =</span> com, <span class="at">weight =</span> <span class="st">&quot;POPULATION&quot;</span>, <span class="at">prepare =</span> <span class="st">&quot;none&quot;</span>)</span>
<span id="cb56-2"><a href="les-transformations-cartographiques.html#cb56-2" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com_cont, <span class="at">col =</span> <span class="st">&quot;#940000&quot;</span>, <span class="at">border=</span> <span class="st">&quot;white&quot;</span>, <span class="at">add =</span> <span class="cn">FALSE</span>)</span>
<span id="cb56-3"><a href="les-transformations-cartographiques.html#cb56-3" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_title</span>(<span class="st">&quot;Population du Lot - Cartogramme de Dougenik&quot;</span>)</span>
<span id="cb56-4"><a href="les-transformations-cartographiques.html#cb56-4" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_inset_on</span>(com, <span class="at">cex =</span> .<span class="dv">2</span>, <span class="at">pos =</span> <span class="st">&quot;topleft&quot;</span>)</span>
<span id="cb56-5"><a href="les-transformations-cartographiques.html#cb56-5" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com, <span class="at">lwd =</span> .<span class="dv">5</span>)</span>
<span id="cb56-6"><a href="les-transformations-cartographiques.html#cb56-6" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_inset_off</span>()</span></code></pre></div>
<div class="sourceCode" id="cb57"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb57-1"><a href="les-transformations-cartographiques.html#cb57-1" aria-hidden="true" tabindex="-1"></a>com_cont <span class="ot">&lt;-</span> <span class="fu">cartogram_cont</span>(<span class="at">x =</span> com, <span class="at">weight =</span> <span class="st">&quot;POPULATION&quot;</span>, <span class="at">prepare =</span> <span class="st">&quot;none&quot;</span>)</span>
<span id="cb57-2"><a href="les-transformations-cartographiques.html#cb57-2" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com_cont, <span class="at">col =</span> <span class="st">&quot;#940000&quot;</span>, <span class="at">border=</span> <span class="st">&quot;white&quot;</span>, <span class="at">add =</span> <span class="cn">FALSE</span>)</span>
<span id="cb57-3"><a href="les-transformations-cartographiques.html#cb57-3" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_title</span>(<span class="st">&quot;Population du Lot - Cartogramme de Dougenik&quot;</span>)</span>
<span id="cb57-4"><a href="les-transformations-cartographiques.html#cb57-4" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_inset_on</span>(com, <span class="at">cex =</span> .<span class="dv">2</span>, <span class="at">pos =</span> <span class="st">&quot;topleft&quot;</span>)</span>
<span id="cb57-5"><a href="les-transformations-cartographiques.html#cb57-5" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_map</span>(com, <span class="at">lwd =</span> .<span class="dv">5</span>)</span>
<span id="cb57-6"><a href="les-transformations-cartographiques.html#cb57-6" aria-hidden="true" tabindex="-1"></a><span class="fu">mf_inset_off</span>()</span></code></pre></div>
<p><img src="Cartographie-avec-R_files/figure-html/dougenik-1.png" width="672" style="display: block; margin: auto;" /></p>
</div>
<div id="forces-et-faiblesses-des-cartogrammes" class="section level2 hasAnchor" number="5.4">
Expand Down
Loading

0 comments on commit 21a1613

Please sign in to comment.