Skip to content

Commit

Permalink
Deploy commit: Merge pull request #686 from iod-ine/typos
Browse files Browse the repository at this point in the history
Fix typos in C7, clarify a sentence in C8 42df99c
  • Loading branch information
Nowosad committed Dec 2, 2021
1 parent 8c7a199 commit 1eb3826
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions 07-read-write-plot.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ Various 'geoportals' (web services providing geospatial datasets such as [Data.g
\index{geoportals}
Some global geoportals overcome this issue.
The [GEOSS portal](http://www.geoportal.org/) and the [Copernicus Open Access Hub](https://scihub.copernicus.eu/), for example, contain many raster datasets with global coverage.
A wealth of vector datasets can be accessed from the National Aeronautics and Space Administration agency (NASA), [SEDAC](http://sedac.ciesin.columbia.edu/) portal and the European Union's [INSPIRE geoportal](http://inspire-geoportal.ec.europa.eu/), with global and regional coverage.
A wealth of vector datasets can be accessed from the National Aeronautics and Space Administration agency's (NASA) [SEDAC](http://sedac.ciesin.columbia.edu/) portal and the European Union's [INSPIRE geoportal](http://inspire-geoportal.ec.europa.eu/), with global and regional coverage.

Most geoportals provide a graphical interface allowing datasets to be queried based on characteristics such as spatial and temporal extent, the United States Geological Services' [EarthExplorer](https://earthexplorer.usgs.gov/) being a prime example.
*Exploring* datasets interactively on a browser is an effective way of understanding available layers.
*Downloading* data is best done with code, however, from reproducibility and efficiency perspectives.
Downloads can be initiated from the command line using a variety of techniques, primarily via URLs and APIs\index{API} (see the [Sentinel API](https://scihub.copernicus.eu/twiki/do/view/SciHubWebPortal/APIHubDescription) for example).
Files hosted on static URLs can be downloaded with `download.file()`, as illustrated in the code chunk below which accesses US National Parks data from: [catalog.data.gov/dataset/national-parks](https://catalog.data.gov/dataset/national-parks):
Files hosted on static URLs can be downloaded with `download.file()`, as illustrated in the code chunk below which accesses US National Parks data from [catalog.data.gov/dataset/national-parks](https://catalog.data.gov/dataset/national-parks):


```r
Expand Down Expand Up @@ -834,7 +834,7 @@ E1. List and describe three types of vector, raster, and geodatabase formats.

E2. Name at least two differences between `read_sf()` and the more well-known function `st_read()`.

E3. Read the `cycle_hire_xy.csv` file from the **spData** package as a spatial object (Hint: it is located in the `misc\` folder).
E3. Read the `cycle_hire_xy.csv` file from the **spData** package as a spatial object (Hint: it is located in the `misc` folder).
What is a geometry type of the loaded object?

E4. Download the borders of Germany using **rnaturalearth**, and create a new object called `germany_borders`.
Expand Down
3 changes: 2 additions & 1 deletion 08-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ Of course, these default values and other aesthetics can be overridden.
The purpose of this section is to show how.

There are two main types of map aesthetics: those that change with the data and those that are constant.
Unlike **ggplot2**, which uses the helper function `aes()` to represent variable aesthetics, **tmap** accepts aesthetic arguments that are either variable fields (based on column names) or constant values.^[
Unlike **ggplot2**, which uses the helper function `aes()` to represent variable aesthetics, **tmap** accepts aesthetic arguments directly.
To map a variable to an aesthetic, pass its column name to the corresponding argument, and to set a fixed aesthetic, pass the desired value instead.^[
If there is a clash between a fixed value and a column name, the column name takes precedence. This can be verified by running the next code chunk after running `nz$red = 1:nrow(nz)`.
]
The most commonly used aesthetics for fill and border layers include color, transparency, line width and line type, set with `col`, `alpha`, `lwd`, and `lty` arguments, respectively.
Expand Down
Binary file modified 08-mapping_files/figure-html/layout3-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 08-mapping_files/figure-html/tmstyles-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion adv-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ <h3>
Of course, these default values and other aesthetics can be overridden.
The purpose of this section is to show how.</p>
<p>There are two main types of map aesthetics: those that change with the data and those that are constant.
Unlike <strong>ggplot2</strong>, which uses the helper function <code><a href="https://ggplot2.tidyverse.org/reference/aes.html">aes()</a></code> to represent variable aesthetics, <strong>tmap</strong> accepts aesthetic arguments that are either variable fields (based on column names) or constant values.<a class="footnote-ref" tabindex="0" data-toggle="popover" data-content="&lt;p&gt;
Unlike <strong>ggplot2</strong>, which uses the helper function <code><a href="https://ggplot2.tidyverse.org/reference/aes.html">aes()</a></code> to represent variable aesthetics, <strong>tmap</strong> accepts aesthetic arguments directly.
To map a variable to an aesthetic, pass its column name to the corresponding argument, and to set a fixed aesthetic, pass the desired value instead.<a class="footnote-ref" tabindex="0" data-toggle="popover" data-content="&lt;p&gt;
If there is a clash between a fixed value and a column name, the column name takes precedence. This can be verified by running the next code chunk after running &lt;code&gt;nz$red = 1:nrow(nz)&lt;/code&gt;.&lt;/p&gt;"><sup>44</sup></a>
The most commonly used aesthetics for fill and border layers include color, transparency, line width and line type, set with <code>col</code>, <code>alpha</code>, <code>lwd</code>, and <code>lty</code> arguments, respectively.
The impact of setting these with fixed values is illustrated in Figure <a href="adv-map.html#fig:tmstatic">8.3</a>.</p>
Expand Down
6 changes: 3 additions & 3 deletions read-write.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ <h2>
<p>
Some global geoportals overcome this issue.
The <a href="http://www.geoportal.org/">GEOSS portal</a> and the <a href="https://scihub.copernicus.eu/">Copernicus Open Access Hub</a>, for example, contain many raster datasets with global coverage.
A wealth of vector datasets can be accessed from the National Aeronautics and Space Administration agency (NASA), <a href="http://sedac.ciesin.columbia.edu/">SEDAC</a> portal and the European Union’s <a href="http://inspire-geoportal.ec.europa.eu/">INSPIRE geoportal</a>, with global and regional coverage.</p>
A wealth of vector datasets can be accessed from the National Aeronautics and Space Administration agency’s (NASA) <a href="http://sedac.ciesin.columbia.edu/">SEDAC</a> portal and the European Union’s <a href="http://inspire-geoportal.ec.europa.eu/">INSPIRE geoportal</a>, with global and regional coverage.</p>
<p>Most geoportals provide a graphical interface allowing datasets to be queried based on characteristics such as spatial and temporal extent, the United States Geological Services’ <a href="https://earthexplorer.usgs.gov/">EarthExplorer</a> being a prime example.
<em>Exploring</em> datasets interactively on a browser is an effective way of understanding available layers.
<em>Downloading</em> data is best done with code, however, from reproducibility and efficiency perspectives.
Downloads can be initiated from the command line using a variety of techniques, primarily via URLs and APIs (see the <a href="https://scihub.copernicus.eu/twiki/do/view/SciHubWebPortal/APIHubDescription">Sentinel API</a> for example).
Files hosted on static URLs can be downloaded with <code><a href="https://rdrr.io/r/utils/download.file.html">download.file()</a></code>, as illustrated in the code chunk below which accesses US National Parks data from: <a href="https://catalog.data.gov/dataset/national-parks">catalog.data.gov/dataset/national-parks</a>:</p>
Files hosted on static URLs can be downloaded with <code><a href="https://rdrr.io/r/utils/download.file.html">download.file()</a></code>, as illustrated in the code chunk below which accesses US National Parks data from <a href="https://catalog.data.gov/dataset/national-parks">catalog.data.gov/dataset/national-parks</a>:</p>
<div class="sourceCode" id="cb238"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="fu"><a href="https://rdrr.io/r/utils/download.file.html">download.file</a></span><span class="op">(</span>url <span class="op">=</span> <span class="st">"http://nrdata.nps.gov/programs/lands/nps_boundary.zip"</span>,
destfile <span class="op">=</span> <span class="st">"nps_boundary.zip"</span><span class="op">)</span>
Expand Down Expand Up @@ -1081,7 +1081,7 @@ <h2>
</h2>
<p>E1. List and describe three types of vector, raster, and geodatabase formats.</p>
<p>E2. Name at least two differences between <code><a href="https://r-spatial.github.io/sf/reference/st_read.html">read_sf()</a></code> and the more well-known function <code><a href="https://r-spatial.github.io/sf/reference/st_read.html">st_read()</a></code>.</p>
<p>E3. Read the <code>cycle_hire_xy.csv</code> file from the <strong>spData</strong> package as a spatial object (Hint: it is located in the <code>misc\</code> folder).
<p>E3. Read the <code>cycle_hire_xy.csv</code> file from the <strong>spData</strong> package as a spatial object (Hint: it is located in the <code>misc</code> folder).
What is a geometry type of the loaded object?</p>
<p>E4. Download the borders of Germany using <strong>rnaturalearth</strong>, and create a new object called <code>germany_borders</code>.
Write this new object to a file of the GeoPackage format.</p>
Expand Down
2 changes: 1 addition & 1 deletion search.json

Large diffs are not rendered by default.

0 comments on commit 1eb3826

Please sign in to comment.