diff --git a/.gitignore b/.gitignore index dd220f30e32cfcd726fc6e43aff6f25edb3c9260..0b7b69bd8ba18f12769262bbd615bf207224f74a 100644 --- a/.gitignore +++ b/.gitignore @@ -34,10 +34,6 @@ vignettes/*.pdf .Rproj.user -# Book directory -_book -public - # Package bibliography packages.bib diff --git a/public/01-introduction.html b/public/01-introduction.html new file mode 100644 index 0000000000000000000000000000000000000000..380a9684ac4c46e3e36c13cbd8c739ce1f551772 --- /dev/null +++ b/public/01-introduction.html @@ -0,0 +1,454 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> + +<meta charset="utf-8"> +<meta name="generator" content="quarto-0.9.617"> + +<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> + + +<title>Mapping and spatial analyses in R for One Health studies - 1 Introduction</title> +<style> +code{white-space: pre-wrap;} +span.smallcaps{font-variant: small-caps;} +span.underline{text-decoration: underline;} +div.column{display: inline-block; vertical-align: top; width: 50%;} +div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} +ul.task-list{list-style: none;} +div.csl-bib-body { } +div.csl-entry { + clear: both; +} +.hanging div.csl-entry { + margin-left:2em; + text-indent:-2em; +} +div.csl-left-margin { + min-width:2em; + float:left; +} +div.csl-right-inline { + margin-left:2em; + padding-left:1em; +} +div.csl-indent { + margin-left: 2em; +} +</style> + + +<script src="site_libs/quarto-nav/quarto-nav.js"></script> +<script src="site_libs/quarto-nav/headroom.min.js"></script> +<script src="site_libs/clipboard/clipboard.min.js"></script> +<script src="site_libs/quarto-search/autocomplete.umd.js"></script> +<script src="site_libs/quarto-search/fuse.min.js"></script> +<script src="site_libs/quarto-search/quarto-search.js"></script> +<meta name="quarto:offset" content="./"> +<link href="./references.html" rel="next"> +<link href="./index.html" rel="prev"> +<script src="site_libs/quarto-html/quarto.js"></script> +<script src="site_libs/quarto-html/popper.min.js"></script> +<script src="site_libs/quarto-html/tippy.umd.min.js"></script> +<script src="site_libs/quarto-html/anchor.min.js"></script> +<link href="site_libs/quarto-html/tippy.css" rel="stylesheet"> +<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"> +<script src="site_libs/bootstrap/bootstrap.min.js"></script> +<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet"> +<link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet"> +<script id="quarto-search-options" type="application/json">{ + "location": "sidebar", + "copy-button": false, + "collapse-after": 3, + "panel-placement": "start", + "type": "textbox", + "limit": 20, + "language": { + "search-no-results-text": "No results", + "search-matching-documents-text": "matching documents", + "search-copy-link-title": "Copy link to search", + "search-hide-matches-text": "Hide additional matches", + "search-more-match-text": "more match in this document", + "search-more-matches-text": "more matches in this document", + "search-clear-button-title": "Clear", + "search-detached-cancel-button-title": "Cancel", + "search-submit-button-title": "Submit" + } +}</script> + + +<link rel="stylesheet" href="styles.css"> +</head> + +<body class="nav-sidebar floating"> + +<div id="quarto-search-results"></div> + <header id="quarto-header" class="headroom fixed-top"> + <nav class="quarto-secondary-nav" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }"> + <div class="container-fluid d-flex justify-content-between"> + <h1 class="quarto-secondary-nav-title"><span class="chapter-number">1</span> <span class="chapter-title">Introduction</span></h1> + <button type="button" class="quarto-btn-toggle btn" aria-label="Show secondary navigation"> + <i class="bi bi-chevron-right"></i> + </button> + </div> + </nav> +</header> +<!-- content --> +<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article"> +<!-- sidebar --> + <nav id="quarto-sidebar" class="sidebar collapse sidebar-navigation floating overflow-auto"> + <div class="pt-lg-2 mt-2 text-left sidebar-header"> + <div class="sidebar-title mb-0 py-0"> + <a href="./">Mapping and spatial analyses in R for One Health studies</a> + <div class="sidebar-tools-main"> + <a href="https://forge.ird.fr/espace-dev/personnels/longour/rspatial-for-onehealth" title="Source Code" class="sidebar-tool px-1"><i class="bi bi-git"></i></a> +</div> + </div> + </div> + <div class="mt-2 flex-shrink-0 align-items-center"> + <div class="sidebar-search"> + <div id="quarto-search" class="" title="Search"></div> + </div> + </div> + <div class="sidebar-menu-container"> + <ul class="list-unstyled mt-1"> + <li class="sidebar-item"> + <div class="sidebar-item-container"> + <a href="./index.html" class="sidebar-item-text sidebar-link">Preface</a> + </div> +</li> + <li class="sidebar-item"> + <div class="sidebar-item-container"> + <a href="./01-introduction.html" class="sidebar-item-text sidebar-link active"><span class="chapter-number">1</span> <span class="chapter-title">Introduction</span></a> + </div> +</li> + <li class="sidebar-item"> + <div class="sidebar-item-container"> + <a href="./references.html" class="sidebar-item-text sidebar-link">References</a> + </div> +</li> + </ul> + </div> +</nav> +<!-- margin-sidebar --> + <div id="quarto-margin-sidebar" class="sidebar margin-sidebar"> + <nav id="TOC" role="doc-toc"> + <h2 id="toc-title">Table of contents</h2> + + <ul> + <li><a href="#spatial-in-r-history-and-evolutions" id="toc-spatial-in-r-history-and-evolutions" class="nav-link active" data-scroll-target="#spatial-in-r-history-and-evolutions"> <span class="header-section-number">1.1</span> Spatial in R : History and evolutions</a></li> + <li><a href="#the-package-sf" id="toc-the-package-sf" class="nav-link" data-scroll-target="#the-package-sf"> <span class="header-section-number">1.2</span> The package <code>sf</code></a> + <ul class="collapse"> + <li><a href="#format-of-spatial-objects-sf" id="toc-format-of-spatial-objects-sf" class="nav-link" data-scroll-target="#format-of-spatial-objects-sf"> <span class="header-section-number">1.2.1</span> Format of spatial objects <code>sf</code></a></li> + </ul></li> + <li><a href="#package-mapsf" id="toc-package-mapsf" class="nav-link" data-scroll-target="#package-mapsf"> <span class="header-section-number">1.3</span> Package <code>mapsf</code></a></li> + <li><a href="#the-package-terra" id="toc-the-package-terra" class="nav-link" data-scroll-target="#the-package-terra"> <span class="header-section-number">1.4</span> The package <code>terra</code></a></li> + </ul> +</nav> + </div> +<!-- main --> +<main class="content" id="quarto-document-content"> + +<header id="title-block-header" class="quarto-title-block default"> +<div class="quarto-title"> +<h1 class="title"><span id="introductionx" class="quarto-section-identifier d-none d-lg-block"><span class="chapter-number">1</span> <span class="chapter-title">Introduction</span></span></h1> +</div> + + + +<div class="quarto-title-meta"> + + + + </div> + + +</header> + +<section id="spatial-in-r-history-and-evolutions" class="level2" data-number="1.1"> +<h2 data-number="1.1" class="anchored" data-anchor-id="spatial-in-r-history-and-evolutions"><span class="header-section-number">1.1</span> Spatial in R : History and evolutions</h2> +<p>Historically, 4 packages make it possible to import, manipulate and transform spatial data:</p> +<ul> +<li>The package <code>rgdal</code> <span class="citation" data-cites="rgdal">(<a href="references.html#ref-rgdal" role="doc-biblioref">Bivand, Keitt, and Rowlingson 2022</a>)</span> which is an interface between R and the <a href="http://www.gdal.org/">GDAL</a> <span class="citation" data-cites="GDAL">(<a href="references.html#ref-GDAL" role="doc-biblioref">GDAL/OGR contributors, n.d.</a>)</span> and <a href="https://proj.org/">PROJ</a> <span class="citation" data-cites="PROJ">(<a href="references.html#ref-PROJ" role="doc-biblioref">PROJ contributors 2021</a>)</span> libraries allow you to import and export spatial data (shapefiles for example) and also to manage cartographic projections<br> +</li> +<li>The package <code>sp</code> <span class="citation" data-cites="sp">(<a href="references.html#ref-sp" role="doc-biblioref">E. J. Pebesma and Bivand 2005</a>)</span> provides class and methods for vector spatial data in R. It allows displaying background maps, inspectiong an attribute table etc.<br> +</li> +<li>The package <code>rgeos</code> <span class="citation" data-cites="rgeos">(<a href="references.html#ref-rgeos" role="doc-biblioref">Bivand and Rundel 2021</a>)</span> gives access to the <a href="http://trac.osgeo.org/geos/">GEOS</a> spatial operations library and therefore makes classic GIS operations available: calculation of surfaces or perimeters, calculation of distances, spatial aggregations, buffer zones, intersections, etc.<br> +</li> +<li>The package <code>raster</code> <span class="citation" data-cites="raster">(<a href="references.html#ref-raster" role="doc-biblioref">Hijmans 2022a</a>)</span> is dedicated to the import, manipulation and modeling of raster data.</li> +</ul> +<p>Today, the main developments concerning vector data have moved away from the old 3 (<code>sp</code>, <code>rgdal</code>, <code>rgeos</code>) to rely mainly on the package <code>sf</code> (<span class="citation" data-cites="sf">(<a href="references.html#ref-sf" role="doc-biblioref">E. Pebesma 2018a</a>)</span>, <span class="citation" data-cites="pebesma2018">(<a href="references.html#ref-pebesma2018" role="doc-biblioref">E. Pebesma 2018b</a>)</span>). In this manual we will rely exclusively on this package to manipulate vector data.</p> +<p>The packages <code>stars</code> <span class="citation" data-cites="stars">(<a href="references.html#ref-stars" role="doc-biblioref">E. Pebesma 2021</a>)</span> and <code>terra</code> <span class="citation" data-cites="terra">(<a href="references.html#ref-terra" role="doc-biblioref">Hijmans 2022b</a>)</span> come to replace the package <code>raster</code> for processing raster data. We have chosen to use the package here <code>terra</code> for its proximity to the <code>raster</code>.</p> +</section> +<section id="the-package-sf" class="level2" data-number="1.2"> +<h2 data-number="1.2" class="anchored" data-anchor-id="the-package-sf"><span class="header-section-number">1.2</span> The package <code>sf</code></h2> +<p><img src="img/sf.gif" align="right" width="150"> The package <code>sf</code> was released in late 2016 by Edzer Pebesma (also author of <code>sp</code>). Its goal is to combine the feature of <code>sp</code>, <code>rgeos</code> and <code>rgdal</code> in a single, more ergonomic package. This package offers simple objects (following the <a href="https://en.wikipedia.org/wiki/Simple_Features"><em>simple feature</em></a> standard) which are easier to manipulate. Particular attention has been paid to the compatibility of the package with the <em>pipe</em> syntax and the operators of the <code>tidyverse</code>.</p> +<p><code>sf</code> directly uses the GDAL, GEOS and PROJ libraries.</p> +<div class="quarto-figure quarto-figure-center"> +<figure class="figure"> +<p><img src="img/sf_deps.png" class="img-fluid figure-img" width="600"></p> +</figure> +</div> +<p><a href="https://r-spatial.org/r/2020/03/17/wkt.html">From r-spatial.org</a></p> +<div class="callout-note callout callout-style-simple no-icon"> +<div class="callout-body d-flex"> +<div class="callout-icon-container"> +<i class="callout-icon no-icon"></i> +</div> +<div class="callout-body-container"> +<p>Website of package <code>sf</code> :</p> +<p><a href="https://r-spatial.github.io/sf/">Simple Features for R</a></p> +</div> +</div> +</div> +<section id="format-of-spatial-objects-sf" class="level3" data-number="1.2.1"> +<h3 data-number="1.2.1" class="anchored" data-anchor-id="format-of-spatial-objects-sf"><span class="header-section-number">1.2.1</span> Format of spatial objects <code>sf</code></h3> +<div class="quarto-figure quarto-figure-center"> +<figure class="figure"> +<p><img src="img/sf.png" class="img-fluid figure-img" width="600"></p> +</figure> +</div> +<p>Objects<code>sf</code> are objects in <code>data.frame</code> which one of the columns contains geometries. This column is the class of sfc (<em>simple feature column</em>) and each individual of the column is a sfg <em>(simple feature geometry)</em>. This format is very practical insofa as the data and the geometries are intrinsically linked in the same object.</p> +<div class="callout-note callout callout-style-simple no-icon"> +<div class="callout-body d-flex"> +<div class="callout-icon-container"> +<i class="callout-icon no-icon"></i> +</div> +<div class="callout-body-container"> +<p>Thumbnail describing the simple feature format:</p> +<p><a href="https://r-spatial.github.io/sf/articles/sf1.html">Simple Features for R</a></p> +</div> +</div> +</div> +<div class="callout-tip callout callout-style-default callout-captioned"> +<div class="callout-header d-flex align-content-center"> +<div class="callout-icon-container"> +<i class="callout-icon"></i> +</div> +<div class="callout-caption-container flex-fill"> +Tip +</div> +</div> +<div class="callout-body-container callout-body"> +<p>A benchmark of vector processing libraries is available <a href="https://github.com/kadyb/vector-benchmark">here</a>.</p> +</div> +</div> +</section> +</section> +<section id="package-mapsf" class="level2" data-number="1.3"> +<h2 data-number="1.3" class="anchored" data-anchor-id="package-mapsf"><span class="header-section-number">1.3</span> Package <code>mapsf</code></h2> +<p>The free R software spatial ecosystem is rich, dynamic and mature and several packages allow to import, process and represent spatial data. The package <a href="https://CRAN.R-project.org/package=maps"><code>mapsf</code></a> <span class="citation" data-cites="mapsf">(<a href="references.html#ref-mapsf" role="doc-biblioref">Giraud 2022</a>)</span> relies on this ecosystem to integrate the creation of quality thematic maps into processing chains with R.</p> +<p>Other packages can be used to make thematic maps. The package <code>ggplot2</code> <span class="citation" data-cites="ggplot2">(<a href="references.html#ref-ggplot2" role="doc-biblioref">Wickham 2016</a>)</span>, in association with the package <code>ggspatial</code> <span class="citation" data-cites="ggspatial">(<a href="references.html#ref-ggspatial" role="doc-biblioref">Dunnington 2021</a>)</span>, allows for example to display spatial objects and to make simple thematic maps. The package <code>tmap</code> <span class="citation" data-cites="tmap">(<a href="references.html#ref-tmap" role="doc-biblioref">Tennekes 2018</a>)</span> is dedicated to the creation of thematic maps, it uses a syntax close to that of <code>ggplot2</code> (sequence of instructions combined with the ‘+’ sign). Documentation and tutorials for using these two packages are readily available on the web.</p> +<p>Here, we will mainly use the package <code>mapsf</code> whose functionalities are quite complete and the handling rather simple. In addition, the package is relatively light.</p> +<p><img src="img/logo_mapsf.png" align="right" width="120"></p> +<p><code>mapsf</code> allows you to create most of the types of map usually used in statistical cartography (choropleth maps, typologies, proportional or graduated symbols, etc.). For each type of map, several parameters are used to customize the cartographic representation. These parameters are the same as those found in the usual GIS or cartography software (for example, the choice of discretizations and color palettes, the modification of the size of the symbols or the customization of the legends). Associated with the data representation functions, other functions are dedicated to cartographic dressing (themes or graphic charters, legends, scales, orientation arrows, title, credits, annotations, etc.), the creation of boxes or the exporting maps.<br> +<code>mapsf</code> is the successor of <a href="http://riatelab.github.io/cartography/docs/"><code>cartography</code></a> <span class="citation" data-cites="cartography">(<a href="references.html#ref-cartography" role="doc-biblioref">Giraud and Lambert 2016</a>)</span>, it offers the same main functionalities while being lighter and more ergonomic.</p> +<p>To use this package several sources can be consulted:</p> +<ul> +<li><p>The package documentation accessible <a href="http://riatelab.github.io/mapsf/">on the internet</a> or directly in R (<code>?mapsf</code>),</p></li> +<li><p>A <a href="https://raw.githubusercontent.com/riatelab/mapsf/master/vignettes/web_only/img/mapsf_cheatsheet.pdf"><em>cheat sheet</em></a>,</p></li> +</ul> +<div class="quarto-figure quarto-figure-center"> +<figure class="figure"> +<p><img src="img/mapsf_cheatsheet.png" class="img-fluid figure-img" width="600"></p> +</figure> +</div> +<ul> +<li><p>The <a href="https://riatelab.github.io/mapsf/articles/">vignettes</a> associated with the package show sample scripts,</p></li> +<li><p>The <a href="https://rgeomatic.hypotheses.org/">R Geomatics</a> blog which provides resources and examples related to the package and more generally to the R spatial ecosystem.</p></li> +</ul> +</section> +<section id="the-package-terra" class="level2" data-number="1.4"> +<h2 data-number="1.4" class="anchored" data-anchor-id="the-package-terra"><span class="header-section-number">1.4</span> The package <code>terra</code></h2> +<p><img src="img/logo_terra.png" align="right" width="150"> The package <code>terra</code> was release in early 2020 by Robert J. Hijmans (also author of <code>raster</code>). Its objective is to propose methods of treatment and analysis of raster data. This package is very similar to the package <code>raster</code>; but it has more features, it’s easier to use, and it’s faster.</p> +<div class="callout-note callout callout-style-simple no-icon"> +<div class="callout-body d-flex"> +<div class="callout-icon-container"> +<i class="callout-icon no-icon"></i> +</div> +<div class="callout-body-container"> +<p>Website of package <code>terra</code> :</p> +<p><a href="https://rspatial.org/terra/">Spatial Data Science with R and “terraâ€</a></p> +</div> +</div> +</div> +<div class="callout-tip callout callout-style-default callout-captioned"> +<div class="callout-header d-flex align-content-center"> +<div class="callout-icon-container"> +<i class="callout-icon"></i> +</div> +<div class="callout-caption-container flex-fill"> +Tip +</div> +</div> +<div class="callout-body-container callout-body"> +<p>A benchmark of raster processing libraries is available <a href="https://github.com/kadyb/raster-benchmark">here</a>.</p> +</div> +</div> + + +<div id="refs" class="references csl-bib-body hanging-indent" role="doc-bibliography" style="display: none"> +<div id="ref-rgdal" class="csl-entry" role="doc-biblioentry"> +Bivand, Roger, Tim Keitt, and Barry Rowlingson. 2022. <span>“Rgdal: Bindings for the ’Geospatial’ Data Abstraction Library.â€</span> <a href="https://CRAN.R-project.org/package=rgdal">https://CRAN.R-project.org/package=rgdal</a>. +</div> +<div id="ref-rgeos" class="csl-entry" role="doc-biblioentry"> +Bivand, Roger, and Colin Rundel. 2021. <span>“Rgeos: Interface to Geometry Engine - Open Source (’GEOS’).â€</span> <a href="https://CRAN.R-project.org/package=rgeos">https://CRAN.R-project.org/package=rgeos</a>. +</div> +<div id="ref-ggspatial" class="csl-entry" role="doc-biblioentry"> +Dunnington, Dewey. 2021. <span>“Ggspatial: Spatial Data Framework for Ggplot2.â€</span> <a href="https://CRAN.R-project.org/package=ggspatial">https://CRAN.R-project.org/package=ggspatial</a>. +</div> +<div id="ref-GDAL" class="csl-entry" role="doc-biblioentry"> +GDAL/OGR contributors. n.d. <em><span>GDAL/OGR</span> Geospatial Data Abstraction Software Library</em>. Open Source Geospatial Foundation. <a href="https://gdal.org">https://gdal.org</a>. +</div> +<div id="ref-mapsf" class="csl-entry" role="doc-biblioentry"> +Giraud, Timothée. 2022. <span>“Mapsf: Thematic Cartography.â€</span> <a href="https://CRAN.R-project.org/package=mapsf">https://CRAN.R-project.org/package=mapsf</a>. +</div> +<div id="ref-cartography" class="csl-entry" role="doc-biblioentry"> +Giraud, Timothée, and Nicolas Lambert. 2016. <span>“Cartography: Create and Integrate Maps in Your r Workflowâ€</span> 1. <a href="https://doi.org/10.21105/joss.00054">https://doi.org/10.21105/joss.00054</a>. +</div> +<div id="ref-raster" class="csl-entry" role="doc-biblioentry"> +Hijmans, Robert J. 2022a. <span>“Raster: Geographic Data Analysis and Modeling.â€</span> <a href="https://CRAN.R-project.org/package=raster">https://CRAN.R-project.org/package=raster</a>. +</div> +<div id="ref-terra" class="csl-entry" role="doc-biblioentry"> +———. 2022b. <span>“Terra: Spatial Data Analysis.â€</span> <a href="https://CRAN.R-project.org/package=terra">https://CRAN.R-project.org/package=terra</a>. +</div> +<div id="ref-sf" class="csl-entry" role="doc-biblioentry"> +Pebesma, Edzer. 2018a. <span>“<span></span>Simple Features for r: Standardized Support for Spatial Vector Data<span></span>â€</span> 10. <a href="https://doi.org/10.32614/RJ-2018-009">https://doi.org/10.32614/RJ-2018-009</a>. +</div> +<div id="ref-pebesma2018" class="csl-entry" role="doc-biblioentry"> +———. 2018b. <span>“Simple Features for R: Standardized Support for Spatial Vector Data.â€</span> <em>The R Journal</em> 10 (1): 439. <a href="https://doi.org/10.32614/rj-2018-009">https://doi.org/10.32614/rj-2018-009</a>. +</div> +<div id="ref-stars" class="csl-entry" role="doc-biblioentry"> +———. 2021. <span>“Stars: Spatiotemporal Arrays, Raster and Vector Data Cubes.â€</span> <a href="https://CRAN.R-project.org/package=stars">https://CRAN.R-project.org/package=stars</a>. +</div> +<div id="ref-sp" class="csl-entry" role="doc-biblioentry"> +Pebesma, Edzer J., and Roger S. Bivand. 2005. <span>“Classes and Methods for Spatial Data in <span></span>r<span></span>â€</span> 5. <a href="https://CRAN.R-project.org/doc/Rnews/">https://CRAN.R-project.org/doc/Rnews/</a>. +</div> +<div id="ref-PROJ" class="csl-entry" role="doc-biblioentry"> +PROJ contributors. 2021. <em><span>PROJ</span> Coordinate Transformation Software Library</em>. Open Source Geospatial Foundation. <a href="https://proj.org/">https://proj.org/</a>. +</div> +<div id="ref-tmap" class="csl-entry" role="doc-biblioentry"> +Tennekes, Martijn. 2018. <span>“<span></span>Tmap<span></span>: Thematic Maps in <span></span>r<span></span>â€</span> 84. <a href="https://doi.org/10.18637/jss.v084.i06">https://doi.org/10.18637/jss.v084.i06</a>. +</div> +<div id="ref-ggplot2" class="csl-entry" role="doc-biblioentry"> +Wickham, Hadley. 2016. <span>“Ggplot2: Elegant Graphics for Data Analysis.â€</span> <a href="https://ggplot2.tidyverse.org">https://ggplot2.tidyverse.org</a>. +</div> +</div> +</section> + +</main> <!-- /main --> +<script id="quarto-html-after-body" type="application/javascript"> +window.document.addEventListener("DOMContentLoaded", function (event) { + const icon = ""; + const anchorJS = new window.AnchorJS(); + anchorJS.options = { + placement: 'right', + icon: icon + }; + anchorJS.add('.anchored'); + const clipboard = new window.ClipboardJS('.code-copy-button', { + target: function(trigger) { + return trigger.previousElementSibling; + } + }); + clipboard.on('success', function(e) { + // button target + const button = e.trigger; + // don't keep focus + button.blur(); + // flash "checked" + button.classList.add('code-copy-button-checked'); + var currentTitle = button.getAttribute("title"); + button.setAttribute("title", "Copied!"); + setTimeout(function() { + button.setAttribute("title", currentTitle); + button.classList.remove('code-copy-button-checked'); + }, 1000); + // clear code selection + e.clearSelection(); + }); + function tippyHover(el, contentFn) { + const config = { + allowHTML: true, + content: contentFn, + maxWidth: 500, + delay: 100, + arrow: false, + appendTo: function(el) { + return el.parentElement; + }, + interactive: true, + interactiveBorder: 10, + theme: 'quarto', + placement: 'bottom-start' + }; + window.tippy(el, config); + } + const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]'); + for (var i=0; i<noterefs.length; i++) { + const ref = noterefs[i]; + tippyHover(ref, function() { + let href = ref.getAttribute('href'); + try { href = new URL(href).hash; } catch {} + const id = href.replace(/^#\/?/, ""); + const note = window.document.getElementById(id); + return note.innerHTML; + }); + } + var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]'); + for (var i=0; i<bibliorefs.length; i++) { + const ref = bibliorefs[i]; + const cites = ref.parentNode.getAttribute('data-cites').split(' '); + tippyHover(ref, function() { + var popup = window.document.createElement('div'); + cites.forEach(function(cite) { + var citeDiv = window.document.createElement('div'); + citeDiv.classList.add('hanging-indent'); + citeDiv.classList.add('csl-entry'); + var biblioDiv = window.document.getElementById('ref-' + cite); + if (biblioDiv) { + citeDiv.innerHTML = biblioDiv.innerHTML; + } + popup.appendChild(citeDiv); + }); + return popup.innerHTML; + }); + } + var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); + var filterRegex = new RegExp('/' + window.location.host + '/'); + var isInternal = (href) => { + return filterRegex.test(href) || localhostRegex.test(href); + } + // Inspect non-navigation links and adorn them if external + var links = window.document.querySelectorAll('a:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external)'); + for (var i=0; i<links.length; i++) { + const link = links[i]; + if (!isInternal(link.href)) { + // target, if specified + link.setAttribute("target", "_blank"); + } + } +}); +</script> +<nav class="page-navigation"> + <div class="nav-page nav-page-previous"> + <a href="./index.html" class="pagination-link"> + <i class="bi bi-arrow-left-short"></i> <span class="nav-page-text">Preface</span> + </a> + </div> + <div class="nav-page nav-page-next"> + <a href="./references.html" class="pagination-link"> + <span class="nav-page-text">References</span> <i class="bi bi-arrow-right-short"></i> + </a> + </div> +</nav> +</div> <!-- /content --> +<footer class="footer"> + <div class="nav-footer"> + <div class="nav-footer-left">UMR 228 ESPACE-DEV</div> + <div class="nav-footer-right"><img src="img/ird_footer.png" height="50"></div> + </div> +</footer> + + + +</body></html> \ No newline at end of file diff --git a/public/img/logo_mapsf.png b/public/img/logo_mapsf.png new file mode 100644 index 0000000000000000000000000000000000000000..3b608788fbd24f9d6a7ad83eaa87602c0fcdf2bf Binary files /dev/null and b/public/img/logo_mapsf.png differ diff --git a/public/img/logo_terra.png b/public/img/logo_terra.png new file mode 100644 index 0000000000000000000000000000000000000000..0b8c94d8cebb76eeb2ee58961d1e43b08d6bea58 Binary files /dev/null and b/public/img/logo_terra.png differ diff --git a/public/img/mapsf_cheatsheet.png b/public/img/mapsf_cheatsheet.png new file mode 100644 index 0000000000000000000000000000000000000000..4d3102f112340c4c3643b6f3157094f16219f305 Binary files /dev/null and b/public/img/mapsf_cheatsheet.png differ diff --git a/public/img/sf.gif b/public/img/sf.gif new file mode 100644 index 0000000000000000000000000000000000000000..4f789aabbc87dc252ce48f345b945a3aaa32a535 Binary files /dev/null and b/public/img/sf.gif differ diff --git a/public/img/sf.png b/public/img/sf.png new file mode 100644 index 0000000000000000000000000000000000000000..f6731e25f88e25866d0d12a8cb37a50e79e60266 Binary files /dev/null and b/public/img/sf.png differ diff --git a/public/img/sf_deps.png b/public/img/sf_deps.png new file mode 100644 index 0000000000000000000000000000000000000000..add75b53e08ffd7a2a6cab239916644dd4155b82 Binary files /dev/null and b/public/img/sf_deps.png differ diff --git a/public/references.html b/public/references.html new file mode 100644 index 0000000000000000000000000000000000000000..9c6dd05f3da1bd51d9f222b885b2853eee0aa79a --- /dev/null +++ b/public/references.html @@ -0,0 +1,330 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> + +<meta charset="utf-8"> +<meta name="generator" content="quarto-0.9.617"> + +<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> + + +<title>Mapping and spatial analyses in R for One Health studies - References</title> +<style> +code{white-space: pre-wrap;} +span.smallcaps{font-variant: small-caps;} +span.underline{text-decoration: underline;} +div.column{display: inline-block; vertical-align: top; width: 50%;} +div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} +ul.task-list{list-style: none;} +div.csl-bib-body { } +div.csl-entry { + clear: both; +} +.hanging div.csl-entry { + margin-left:2em; + text-indent:-2em; +} +div.csl-left-margin { + min-width:2em; + float:left; +} +div.csl-right-inline { + margin-left:2em; + padding-left:1em; +} +div.csl-indent { + margin-left: 2em; +} +</style> + + +<script src="site_libs/quarto-nav/quarto-nav.js"></script> +<script src="site_libs/quarto-nav/headroom.min.js"></script> +<script src="site_libs/clipboard/clipboard.min.js"></script> +<script src="site_libs/quarto-search/autocomplete.umd.js"></script> +<script src="site_libs/quarto-search/fuse.min.js"></script> +<script src="site_libs/quarto-search/quarto-search.js"></script> +<meta name="quarto:offset" content="./"> +<link href="./01-introduction.html" rel="prev"> +<script src="site_libs/quarto-html/quarto.js"></script> +<script src="site_libs/quarto-html/popper.min.js"></script> +<script src="site_libs/quarto-html/tippy.umd.min.js"></script> +<script src="site_libs/quarto-html/anchor.min.js"></script> +<link href="site_libs/quarto-html/tippy.css" rel="stylesheet"> +<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"> +<script src="site_libs/bootstrap/bootstrap.min.js"></script> +<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet"> +<link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet"> +<script id="quarto-search-options" type="application/json">{ + "location": "sidebar", + "copy-button": false, + "collapse-after": 3, + "panel-placement": "start", + "type": "textbox", + "limit": 20, + "language": { + "search-no-results-text": "No results", + "search-matching-documents-text": "matching documents", + "search-copy-link-title": "Copy link to search", + "search-hide-matches-text": "Hide additional matches", + "search-more-match-text": "more match in this document", + "search-more-matches-text": "more matches in this document", + "search-clear-button-title": "Clear", + "search-detached-cancel-button-title": "Cancel", + "search-submit-button-title": "Submit" + } +}</script> + + +<link rel="stylesheet" href="styles.css"> +</head> + +<body class="nav-sidebar floating"> + +<div id="quarto-search-results"></div> + <header id="quarto-header" class="headroom fixed-top"> + <nav class="quarto-secondary-nav" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }"> + <div class="container-fluid d-flex justify-content-between"> + <h1 class="quarto-secondary-nav-title">References</h1> + <button type="button" class="quarto-btn-toggle btn" aria-label="Show secondary navigation"> + <i class="bi bi-chevron-right"></i> + </button> + </div> + </nav> +</header> +<!-- content --> +<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article"> +<!-- sidebar --> + <nav id="quarto-sidebar" class="sidebar collapse sidebar-navigation floating overflow-auto"> + <div class="pt-lg-2 mt-2 text-left sidebar-header"> + <div class="sidebar-title mb-0 py-0"> + <a href="./">Mapping and spatial analyses in R for One Health studies</a> + <div class="sidebar-tools-main"> + <a href="https://forge.ird.fr/espace-dev/personnels/longour/rspatial-for-onehealth" title="Source Code" class="sidebar-tool px-1"><i class="bi bi-git"></i></a> +</div> + </div> + </div> + <div class="mt-2 flex-shrink-0 align-items-center"> + <div class="sidebar-search"> + <div id="quarto-search" class="" title="Search"></div> + </div> + </div> + <div class="sidebar-menu-container"> + <ul class="list-unstyled mt-1"> + <li class="sidebar-item"> + <div class="sidebar-item-container"> + <a href="./index.html" class="sidebar-item-text sidebar-link">Preface</a> + </div> +</li> + <li class="sidebar-item"> + <div class="sidebar-item-container"> + <a href="./01-introduction.html" class="sidebar-item-text sidebar-link"><span class="chapter-number">1</span> <span class="chapter-title">Introduction</span></a> + </div> +</li> + <li class="sidebar-item"> + <div class="sidebar-item-container"> + <a href="./references.html" class="sidebar-item-text sidebar-link active">References</a> + </div> +</li> + </ul> + </div> +</nav> +<!-- margin-sidebar --> + <div id="quarto-margin-sidebar" class="sidebar margin-sidebar"> + + </div> +<!-- main --> +<main class="content" id="quarto-document-content"> + +<header id="title-block-header" class="quarto-title-block default"> +<div class="quarto-title"> +<h1 class="title d-none d-lg-block">References</h1> +</div> + + + +<div class="quarto-title-meta"> + + + + </div> + + +</header> + +<div id="refs" class="references csl-bib-body hanging-indent" role="doc-bibliography"> +<div id="ref-rgdal" class="csl-entry" role="doc-biblioentry"> +Bivand, Roger, Tim Keitt, and Barry Rowlingson. 2022. <span>“Rgdal: +Bindings for the ’Geospatial’ Data Abstraction Library.â€</span> <a href="https://CRAN.R-project.org/package=rgdal">https://CRAN.R-project.org/package=rgdal</a>. +</div> +<div id="ref-rgeos" class="csl-entry" role="doc-biblioentry"> +Bivand, Roger, and Colin Rundel. 2021. <span>“Rgeos: Interface to +Geometry Engine - Open Source (’GEOS’).â€</span> <a href="https://CRAN.R-project.org/package=rgeos">https://CRAN.R-project.org/package=rgeos</a>. +</div> +<div id="ref-ggspatial" class="csl-entry" role="doc-biblioentry"> +Dunnington, Dewey. 2021. <span>“Ggspatial: Spatial Data Framework for +Ggplot2.â€</span> <a href="https://CRAN.R-project.org/package=ggspatial">https://CRAN.R-project.org/package=ggspatial</a>. +</div> +<div id="ref-GDAL" class="csl-entry" role="doc-biblioentry"> +GDAL/OGR contributors. n.d. <em><span>GDAL/OGR</span> Geospatial Data +Abstraction Software Library</em>. Open Source Geospatial Foundation. <a href="https://gdal.org">https://gdal.org</a>. +</div> +<div id="ref-mapsf" class="csl-entry" role="doc-biblioentry"> +Giraud, Timothée. 2022. <span>“Mapsf: Thematic Cartography.â€</span> <a href="https://CRAN.R-project.org/package=mapsf">https://CRAN.R-project.org/package=mapsf</a>. +</div> +<div id="ref-cartography" class="csl-entry" role="doc-biblioentry"> +Giraud, Timothée, and Nicolas Lambert. 2016. <span>“Cartography: Create +and Integrate Maps in Your r Workflowâ€</span> 1. <a href="https://doi.org/10.21105/joss.00054">https://doi.org/10.21105/joss.00054</a>. +</div> +<div id="ref-raster" class="csl-entry" role="doc-biblioentry"> +Hijmans, Robert J. 2022a. <span>“Raster: Geographic Data Analysis and +Modeling.â€</span> <a href="https://CRAN.R-project.org/package=raster">https://CRAN.R-project.org/package=raster</a>. +</div> +<div id="ref-terra" class="csl-entry" role="doc-biblioentry"> +———. 2022b. <span>“Terra: Spatial Data Analysis.â€</span> <a href="https://CRAN.R-project.org/package=terra">https://CRAN.R-project.org/package=terra</a>. +</div> +<div id="ref-sf" class="csl-entry" role="doc-biblioentry"> +Pebesma, Edzer. 2018b. <span>“<span></span>Simple Features for r: +Standardized Support for Spatial Vector Data<span></span>â€</span> 10. <a href="https://doi.org/10.32614/RJ-2018-009">https://doi.org/10.32614/RJ-2018-009</a>. +</div> +<div id="ref-pebesma2018" class="csl-entry" role="doc-biblioentry"> +———. 2018a. <span>“Simple Features for R: Standardized Support for +Spatial Vector Data.â€</span> <em>The R Journal</em> 10 (1): 439. <a href="https://doi.org/10.32614/rj-2018-009">https://doi.org/10.32614/rj-2018-009</a>. +</div> +<div id="ref-stars" class="csl-entry" role="doc-biblioentry"> +———. 2021. <span>“Stars: Spatiotemporal Arrays, Raster and Vector Data +Cubes.â€</span> <a href="https://CRAN.R-project.org/package=stars">https://CRAN.R-project.org/package=stars</a>. +</div> +<div id="ref-sp" class="csl-entry" role="doc-biblioentry"> +Pebesma, Edzer J., and Roger S. Bivand. 2005. <span>“Classes and Methods +for Spatial Data in <span></span>r<span></span>â€</span> 5. <a href="https://CRAN.R-project.org/doc/Rnews/">https://CRAN.R-project.org/doc/Rnews/</a>. +</div> +<div id="ref-PROJ" class="csl-entry" role="doc-biblioentry"> +PROJ contributors. 2021. <em><span>PROJ</span> Coordinate Transformation +Software Library</em>. Open Source Geospatial Foundation. <a href="https://proj.org/">https://proj.org/</a>. +</div> +<div id="ref-tmap" class="csl-entry" role="doc-biblioentry"> +Tennekes, Martijn. 2018. <span>“<span></span>Tmap<span></span>: Thematic +Maps in <span></span>r<span></span>â€</span> 84. <a href="https://doi.org/10.18637/jss.v084.i06">https://doi.org/10.18637/jss.v084.i06</a>. +</div> +<div id="ref-ggplot2" class="csl-entry" role="doc-biblioentry"> +Wickham, Hadley. 2016. <span>“Ggplot2: Elegant Graphics for Data +Analysis.â€</span> <a href="https://ggplot2.tidyverse.org">https://ggplot2.tidyverse.org</a>. +</div> +</div> + + + +</main> <!-- /main --> +<script id="quarto-html-after-body" type="application/javascript"> +window.document.addEventListener("DOMContentLoaded", function (event) { + const icon = ""; + const anchorJS = new window.AnchorJS(); + anchorJS.options = { + placement: 'right', + icon: icon + }; + anchorJS.add('.anchored'); + const clipboard = new window.ClipboardJS('.code-copy-button', { + target: function(trigger) { + return trigger.previousElementSibling; + } + }); + clipboard.on('success', function(e) { + // button target + const button = e.trigger; + // don't keep focus + button.blur(); + // flash "checked" + button.classList.add('code-copy-button-checked'); + var currentTitle = button.getAttribute("title"); + button.setAttribute("title", "Copied!"); + setTimeout(function() { + button.setAttribute("title", currentTitle); + button.classList.remove('code-copy-button-checked'); + }, 1000); + // clear code selection + e.clearSelection(); + }); + function tippyHover(el, contentFn) { + const config = { + allowHTML: true, + content: contentFn, + maxWidth: 500, + delay: 100, + arrow: false, + appendTo: function(el) { + return el.parentElement; + }, + interactive: true, + interactiveBorder: 10, + theme: 'quarto', + placement: 'bottom-start' + }; + window.tippy(el, config); + } + const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]'); + for (var i=0; i<noterefs.length; i++) { + const ref = noterefs[i]; + tippyHover(ref, function() { + let href = ref.getAttribute('href'); + try { href = new URL(href).hash; } catch {} + const id = href.replace(/^#\/?/, ""); + const note = window.document.getElementById(id); + return note.innerHTML; + }); + } + var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]'); + for (var i=0; i<bibliorefs.length; i++) { + const ref = bibliorefs[i]; + const cites = ref.parentNode.getAttribute('data-cites').split(' '); + tippyHover(ref, function() { + var popup = window.document.createElement('div'); + cites.forEach(function(cite) { + var citeDiv = window.document.createElement('div'); + citeDiv.classList.add('hanging-indent'); + citeDiv.classList.add('csl-entry'); + var biblioDiv = window.document.getElementById('ref-' + cite); + if (biblioDiv) { + citeDiv.innerHTML = biblioDiv.innerHTML; + } + popup.appendChild(citeDiv); + }); + return popup.innerHTML; + }); + } + var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); + var filterRegex = new RegExp('/' + window.location.host + '/'); + var isInternal = (href) => { + return filterRegex.test(href) || localhostRegex.test(href); + } + // Inspect non-navigation links and adorn them if external + var links = window.document.querySelectorAll('a:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external)'); + for (var i=0; i<links.length; i++) { + const link = links[i]; + if (!isInternal(link.href)) { + // target, if specified + link.setAttribute("target", "_blank"); + } + } +}); +</script> +<nav class="page-navigation"> + <div class="nav-page nav-page-previous"> + <a href="./01-introduction.html" class="pagination-link"> + <i class="bi bi-arrow-left-short"></i> <span class="nav-page-text"><span class="chapter-number">1</span> <span class="chapter-title">Introduction</span></span> + </a> + </div> + <div class="nav-page nav-page-next"> + </div> +</nav> +</div> <!-- /content --> +<footer class="footer"> + <div class="nav-footer"> + <div class="nav-footer-left">UMR 228 ESPACE-DEV</div> + <div class="nav-footer-right"><img src="img/ird_footer.png" height="50"></div> + </div> +</footer> + + + +</body></html> \ No newline at end of file diff --git a/public/search.json b/public/search.json new file mode 100644 index 0000000000000000000000000000000000000000..25564973e22781b2abee0385bfe456447fd4651e --- /dev/null +++ b/public/search.json @@ -0,0 +1,37 @@ +[ + { + "objectID": "01-introduction.html", + "href": "01-introduction.html", + "title": "1 Introduction", + "section": "", + "text": "Historically, 4 packages make it possible to import, manipulate and transform spatial data:\n\nThe package rgdal (Bivand, Keitt, and Rowlingson 2022) which is an interface between R and the GDAL (GDAL/OGR contributors, n.d.) and PROJ (PROJ contributors 2021) libraries allow you to import and export spatial data (shapefiles for example) and also to manage cartographic projections\n\nThe package sp (E. J. Pebesma and Bivand 2005) provides class and methods for vector spatial data in R. It allows displaying background maps, inspectiong an attribute table etc.\n\nThe package rgeos (Bivand and Rundel 2021) gives access to the GEOS spatial operations library and therefore makes classic GIS operations available: calculation of surfaces or perimeters, calculation of distances, spatial aggregations, buffer zones, intersections, etc.\n\nThe package raster (Hijmans 2022a) is dedicated to the import, manipulation and modeling of raster data.\n\nToday, the main developments concerning vector data have moved away from the old 3 (sp, rgdal, rgeos) to rely mainly on the package sf ((E. Pebesma 2018a), (E. Pebesma 2018b)). In this manual we will rely exclusively on this package to manipulate vector data.\nThe packages stars (E. Pebesma 2021) and terra (Hijmans 2022b) come to replace the package raster for processing raster data. We have chosen to use the package here terra for its proximity to the raster." + }, + { + "objectID": "01-introduction.html#the-package-sf", + "href": "01-introduction.html#the-package-sf", + "title": "1 Introduction", + "section": "1.2 The package sf", + "text": "1.2 The package sf\n The package sf was released in late 2016 by Edzer Pebesma (also author of sp). Its goal is to combine the feature of sp, rgeos and rgdal in a single, more ergonomic package. This package offers simple objects (following the simple feature standard) which are easier to manipulate. Particular attention has been paid to the compatibility of the package with the pipe syntax and the operators of the tidyverse.\nsf directly uses the GDAL, GEOS and PROJ libraries.\n\n\n\n\n\nFrom r-spatial.org\n\n\n\n\n\n\nWebsite of package sf :\nSimple Features for R\n\n\n\n\n1.2.1 Format of spatial objects sf\n\n\n\n\n\nObjectssf are objects in data.frame which one of the columns contains geometries. This column is the class of sfc (simple feature column) and each individual of the column is a sfg (simple feature geometry). This format is very practical insofa as the data and the geometries are intrinsically linked in the same object.\n\n\n\n\n\n\nThumbnail describing the simple feature format:\nSimple Features for R\n\n\n\n\n\n\n\n\n\nTip\n\n\n\nA benchmark of vector processing libraries is available here." + }, + { + "objectID": "01-introduction.html#package-mapsf", + "href": "01-introduction.html#package-mapsf", + "title": "1 Introduction", + "section": "1.3 Package mapsf", + "text": "1.3 Package mapsf\nThe free R software spatial ecosystem is rich, dynamic and mature and several packages allow to import, process and represent spatial data. The package mapsf (Giraud 2022) relies on this ecosystem to integrate the creation of quality thematic maps into processing chains with R.\nOther packages can be used to make thematic maps. The package ggplot2 (Wickham 2016), in association with the package ggspatial (Dunnington 2021), allows for example to display spatial objects and to make simple thematic maps. The package tmap (Tennekes 2018) is dedicated to the creation of thematic maps, it uses a syntax close to that of ggplot2 (sequence of instructions combined with the ‘+’ sign). Documentation and tutorials for using these two packages are readily available on the web.\nHere, we will mainly use the package mapsf whose functionalities are quite complete and the handling rather simple. In addition, the package is relatively light.\n\nmapsf allows you to create most of the types of map usually used in statistical cartography (choropleth maps, typologies, proportional or graduated symbols, etc.). For each type of map, several parameters are used to customize the cartographic representation. These parameters are the same as those found in the usual GIS or cartography software (for example, the choice of discretizations and color palettes, the modification of the size of the symbols or the customization of the legends). Associated with the data representation functions, other functions are dedicated to cartographic dressing (themes or graphic charters, legends, scales, orientation arrows, title, credits, annotations, etc.), the creation of boxes or the exporting maps.\nmapsf is the successor of cartography (Giraud and Lambert 2016), it offers the same main functionalities while being lighter and more ergonomic.\nTo use this package several sources can be consulted:\n\nThe package documentation accessible on the internet or directly in R (?mapsf),\nA cheat sheet,\n\n\n\n\n\n\n\nThe vignettes associated with the package show sample scripts,\nThe R Geomatics blog which provides resources and examples related to the package and more generally to the R spatial ecosystem." + }, + { + "objectID": "01-introduction.html#the-package-terra", + "href": "01-introduction.html#the-package-terra", + "title": "1 Introduction", + "section": "1.4 The package terra", + "text": "1.4 The package terra\n The package terra was release in early 2020 by Robert J. Hijmans (also author of raster). Its objective is to propose methods of treatment and analysis of raster data. This package is very similar to the package raster; but it has more features, it’s easier to use, and it’s faster.\n\n\n\n\n\n\nWebsite of package terra :\nSpatial Data Science with R and “terraâ€\n\n\n\n\n\n\n\n\n\nTip\n\n\n\nA benchmark of raster processing libraries is available here.\n\n\n\n\n\n\nBivand, Roger, Tim Keitt, and Barry Rowlingson. 2022. “Rgdal: Bindings for the ’Geospatial’ Data Abstraction Library.†https://CRAN.R-project.org/package=rgdal.\n\n\nBivand, Roger, and Colin Rundel. 2021. “Rgeos: Interface to Geometry Engine - Open Source (’GEOS’).†https://CRAN.R-project.org/package=rgeos.\n\n\nDunnington, Dewey. 2021. “Ggspatial: Spatial Data Framework for Ggplot2.†https://CRAN.R-project.org/package=ggspatial.\n\n\nGDAL/OGR contributors. n.d. GDAL/OGR Geospatial Data Abstraction Software Library. Open Source Geospatial Foundation. https://gdal.org.\n\n\nGiraud, Timothée. 2022. “Mapsf: Thematic Cartography.†https://CRAN.R-project.org/package=mapsf.\n\n\nGiraud, Timothée, and Nicolas Lambert. 2016. “Cartography: Create and Integrate Maps in Your r Workflow†1. https://doi.org/10.21105/joss.00054.\n\n\nHijmans, Robert J. 2022a. “Raster: Geographic Data Analysis and Modeling.†https://CRAN.R-project.org/package=raster.\n\n\n———. 2022b. “Terra: Spatial Data Analysis.†https://CRAN.R-project.org/package=terra.\n\n\nPebesma, Edzer. 2018a. “Simple Features for r: Standardized Support for Spatial Vector Data†10. https://doi.org/10.32614/RJ-2018-009.\n\n\n———. 2018b. “Simple Features for R: Standardized Support for Spatial Vector Data.†The R Journal 10 (1): 439. https://doi.org/10.32614/rj-2018-009.\n\n\n———. 2021. “Stars: Spatiotemporal Arrays, Raster and Vector Data Cubes.†https://CRAN.R-project.org/package=stars.\n\n\nPebesma, Edzer J., and Roger S. Bivand. 2005. “Classes and Methods for Spatial Data in r†5. https://CRAN.R-project.org/doc/Rnews/.\n\n\nPROJ contributors. 2021. PROJ Coordinate Transformation Software Library. Open Source Geospatial Foundation. https://proj.org/.\n\n\nTennekes, Martijn. 2018. “Tmap: Thematic Maps in r†84. https://doi.org/10.18637/jss.v084.i06.\n\n\nWickham, Hadley. 2016. “Ggplot2: Elegant Graphics for Data Analysis.†https://ggplot2.tidyverse.org." + }, + { + "objectID": "references.html", + "href": "references.html", + "title": "References", + "section": "", + "text": "Bivand, Roger, Tim Keitt, and Barry Rowlingson. 2022. “Rgdal:\nBindings for the ’Geospatial’ Data Abstraction Library.†https://CRAN.R-project.org/package=rgdal.\n\n\nBivand, Roger, and Colin Rundel. 2021. “Rgeos: Interface to\nGeometry Engine - Open Source (’GEOS’).†https://CRAN.R-project.org/package=rgeos.\n\n\nDunnington, Dewey. 2021. “Ggspatial: Spatial Data Framework for\nGgplot2.†https://CRAN.R-project.org/package=ggspatial.\n\n\nGDAL/OGR contributors. n.d. GDAL/OGR Geospatial Data\nAbstraction Software Library. Open Source Geospatial Foundation. https://gdal.org.\n\n\nGiraud, Timothée. 2022. “Mapsf: Thematic Cartography.†https://CRAN.R-project.org/package=mapsf.\n\n\nGiraud, Timothée, and Nicolas Lambert. 2016. “Cartography: Create\nand Integrate Maps in Your r Workflow†1. https://doi.org/10.21105/joss.00054.\n\n\nHijmans, Robert J. 2022a. “Raster: Geographic Data Analysis and\nModeling.†https://CRAN.R-project.org/package=raster.\n\n\n———. 2022b. “Terra: Spatial Data Analysis.†https://CRAN.R-project.org/package=terra.\n\n\nPebesma, Edzer. 2018b. “Simple Features for r:\nStandardized Support for Spatial Vector Data†10. https://doi.org/10.32614/RJ-2018-009.\n\n\n———. 2018a. “Simple Features for R: Standardized Support for\nSpatial Vector Data.†The R Journal 10 (1): 439. https://doi.org/10.32614/rj-2018-009.\n\n\n———. 2021. “Stars: Spatiotemporal Arrays, Raster and Vector Data\nCubes.†https://CRAN.R-project.org/package=stars.\n\n\nPebesma, Edzer J., and Roger S. Bivand. 2005. “Classes and Methods\nfor Spatial Data in r†5. https://CRAN.R-project.org/doc/Rnews/.\n\n\nPROJ contributors. 2021. PROJ Coordinate Transformation\nSoftware Library. Open Source Geospatial Foundation. https://proj.org/.\n\n\nTennekes, Martijn. 2018. “Tmap: Thematic\nMaps in r†84. https://doi.org/10.18637/jss.v084.i06.\n\n\nWickham, Hadley. 2016. “Ggplot2: Elegant Graphics for Data\nAnalysis.†https://ggplot2.tidyverse.org." + } +] \ No newline at end of file diff --git a/public/styles.css b/public/styles.css new file mode 100644 index 0000000000000000000000000000000000000000..9ff4a37dfceaa70ed37b186504870793c15ccc6b --- /dev/null +++ b/public/styles.css @@ -0,0 +1,4 @@ +.code-out { + background-color: #f0f2f4; + font-weight: bold; +} \ No newline at end of file