Lab-9: If you please sir…which way to the Secret Garden?
The Grammar of Maps
Slides and Tutorials
R Tutorial | Slides | Leaflet Tutorial | MapviewTutorial |
---|
Setting up R Packages
Introduction
Choropleth Map
What does choropleth1 mean? And what kind of information could this map represent?
Bubble Map
What information could this map below represent?
What is there to not like about maps!!! Let us now look at the slides. Then we will understand how the R packages sf
, tmap
work to create maps, using data downloadable into R using osmdata
, osmplotr
and rnaturalearth
.
We will learn to make static and interactive maps and to show off different kinds of data on them, data that have an inherently “spatial” spread or significance! sf
+ ggplot
and tmap
give us great static maps. Interactive maps we will make with leaflet
and mapview
; tmap
is also capable of creating interactive maps.
Trade Routes? Populations? Street Crime hotspots? Theatre and Food districts and popular Restaurants? Literary Paris, London and Barcelona?
All possible !!
Embedded Tutorials
knitr::include_url("../../../../labs/r-labs/maps/gram-maps.qmd")
knitr::include_url("../../../../slides/r-slides/spatial/Spatial-Data-in-R.html")
References
Nikita Voevodin, R, Not the Best Practices
Nico Hahn, Making Maps with R
Emine Fidan, Interactive Maps in R
Lovelace et al, Geocomputation in R
https://github.com/CityOfNewYork/nyc-planimetrics/blob/main/Capture_Rules.md
Footnotes
Etymology. From Ancient Greek χώρα (khṓra, “location”) + πλῆθος (plêthos, “a great number”) + English map. First proposed in 1938 by American geographer John Kirtland Wright to mean “quantity in area,” although maps of the type have been used since the early 19th century.↩︎