Back to Course
Mapping with R
0% Complete
0/0 Steps
-
Welcome to Mapping with R (01_01)
-
Geospatial DataMaking Maps is Complex (01_02)
-
mapview for Quick Maps (01_03)
-
sf for Simple Features (01_04)
-
Turning Data Frames into sf Objects (01_05)
-
Importing Shapefiles (01_06)
-
Joining Geospatial Datasets (01_07)
-
Disambiguating Country Names (01_08)
-
Converting Addresses to Coordinates (01_09)
-
U.S.-Specific Datasets (01_10)
-
Advice on Finding International Datasets (01_11)
-
CRS and Projections: Geographic and Projected CRS (01_12)
-
CRS and Projections: How to Choose a CRS (01_13)
-
Introducing Raster GIS with raster and stars (01_14)
-
Basics of Using the raster Package (01_15)
-
Static Mapsggplot2 Essentials (02_01)
-
Starting a Map in ggplot2 (02_02)
-
Labelling ggplot2 Maps (02_03)
-
Compare Locations/Events with Geobubble Charts (02_04)
-
Highlight a Region in a Country with ggplot2 (02_05)
-
Make a Choropleth Map of Discrete Variables with ggplot2 (02_06)
-
Make a Choropleth Map of Continuous Variables with ggplot2 (02_07)
-
Faceting Choropleth Maps with ggplot2 (02_08)
-
Visualize Raster Data with ggplot2 (02_09)
-
Adding Scale Bars and North Arrows with ggplot2 (02_10)
-
Interactive MapsWhat is leaflet? (03_01)
-
Starting a Map in leaflet (03_02)
-
Necessary HTML for Labelling leaflet Maps (03_03)
-
Highlight a Region in a Country with leaflet (03_04)
-
Compare Locations/Events with Geobubble Charts in leaflet (03_05)
-
Make a Choropleth Map of Discrete Variables with leaflet (03_06)
-
Make a Choropleth Map of Continuous Variables with leaflet (03_07)
-
Visualize Raster Data with leaflet (03_08)
-
Wrapping UpYou Did It!
Lesson 22 of 34
In Progress
Make a Choropleth Map of Continuous Variables with ggplot2 (02_07)
Your Turn
For this exercise I took to Twitter to find a dataset that makes DC distinct from the states of US (in 2020).
Use the your-turn script in 02_07
w to make this map, ensuring to add a guide item for District of Columbia which does not contain any federal prisons. You’ll need to go through the same steps I did:
- Create an NA aeshetic
- Override the guide aesthetics
- Set the
na.value
for the fill aesthetic
Solutions
Learn More
In this video I talk about viridis being the single best choice for a continuous color palette. This is because the color palette works well for folks with colorblindness and is perceptually uniform – which means it’s easy to know if you’re looking at a low or high value on the scale.
Have any questions? Put them below and we will help you out!