Visual channels - size, color, shape, position, angle, and texture
An advanced spatial visualization covering multiple layers of information needs to use multiple sets of encodings to convey information quickly and intuitively while not overwhelming the audience.
23.2 Circles, Lines, and Polygons - Oh My!
Fancy maps need distinct visual encodings, so the eye can be drawn the salient features.
One key way to do this is through ensuring different types/styles/aesthetics are displayed as unique fingerprints of visual encodings.
Let’s combine the three datasets we have showed in class for the sacrifice zones projects as example 1.
23.2.1.1.1 US EPA Uranium Mills and Mines Database
Here’s a geospatial dataset the EPA created for abandoned uranium mines in the Western US. It is downloadable as a zip file, which has multiple subdirectories. We will point to the master database as a first exploration.
Multiple layers are present in data source C:\Dev\EnviroDataVis\uld-ii_gis\Master_Database_and_Shape_Files, reading layer `ULD_albers'.
Use `st_layers' to list all layer names and their type in a data source.
Set the `layer' argument in `st_read' to read a particular layer.
Warning in evalq((function (..., call. = TRUE, immediate. = FALSE, noBreaks. =
FALSE, : automatically selected the first layer in a data source containing more
than one.
Reading layer `ULD_albers' from data source
`C:\Dev\EnviroDataVis\uld-ii_gis\Master_Database_and_Shape_Files'
using driver `ESRI Shapefile'
Simple feature collection with 14810 features and 30 fields
Geometry type: MULTIPOINT
Dimension: XY
Bounding box: xmin: -3296195 ymin: -1542681 xmax: 1955673 ymax: 4183792
Projected CRS: North_America_Albers_Equal_Area_Conic
23.2.1.1.2 Make some exploratory maps
Let’s see what the basic mines dataset looks like.
There are WAY more uranium mines than I expected. Let’s focus on areas near the Navajo Nation in the four-corners states of Colorado, New Mexico, Arizona, and Utah.
Let’s filter() the U dataset to the spatial scale of interest using the STATE_NAME column.
states<-c('Colorado', 'New Mexico', 'Arizona', 'Utah')#not the bandU2<-U%>%filter(STATE_NAME%in%states)
Ok, let’s look at that and see if we are limiting our dataset.
That worked. Let’s try to combine the Uranium mines map with the tribal lands of the Navajo Nation using setView(). I clicked on a google map to get the lat (36.481) and lng (-109.495).