PPOL 6805 / DSAN 6750: GIS for Spatial Data Science
Fall 2026
Wednesday, September 16, 2026
Using rnaturalearth with mapview
Computing the union of all geometries in the sf via sf::st_union()
library(leaflet.extras2)
africa_sf <- ne_countries(continent = "Africa", scale = 50)
africa_union_sf <- sf::st_union(africa_sf)
africa_map <- mapview(africa_sf, label="geounit", legend=FALSE)
africa_union_map <- mapview(africa_union_sf, label="st_union(africa)", legend=FALSE)
africa_map | africa_union_mapUse st_union() first:
Computing the centroid of all geometries in the sf via sf::st_centroid()
From Krygier and Wood (2016)
The Earth’s “width” is slightly greater than its “length” 😰
From Wikimedia Commons
From Monmonier (2018)
Kieran Healy, “America’s Ur-Choropleths”
Kieran Healy, “America’s Ur-Choropleths”
From Reddit
From Wikimedia Commons
From Monmonier (2018)
From Monmonier (2018)
Is poverty a “significant issue” in the US?
From Krygier and Wood (2016)
Is poverty a “significant issue” in the US?
Assigns the same number of observations to each color
From Krygier and Wood (2016)
Is poverty a “significant issue” in the US?
Boundaries between colors come at regular (equal) intervals
From Krygier and Wood (2016)
Is poverty a “significant issue” in the US?
Clustering algorithm chooses classes to (a) minimize differences within classes, (b) maximize differences between classes
From Krygier and Wood (2016)
Is poverty a “significant issue” in the US?
A government program offers special funding for counties with above 25% poverty
From Krygier and Wood (2016)
Is poverty a “significant issue” in the US?
From Krygier and Wood (2016)
PPOL 6805 Week 4: Unary and Binary Operations