Starting a Map in ggplot2 (02_02)
This lesson is called Starting a Map in ggplot2 (02_02), part of the Mapping with R course. This lesson is called Starting a Map in ggplot2 (02_02), part of the Mapping with R course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Learn More
In the video I showed that the different map tiles available when usingthe annotation_map_tile()
function from the ggspatial
package. The list of all map tiles can be found by running this code: rosm::osm.types()
Have any questions? Put them below and we will help you out!
Course Content
34 Lessons
1
Making Maps is Complex (01_02)
09:15
2
mapview for Quick Maps (01_03)
06:41
3
sf for Simple Features (01_04)
15:03
4
Turning Data Frames into sf Objects (01_05)
09:41
5
Importing Shapefiles (01_06)
07:59
6
Joining Geospatial Datasets (01_07)
10:30
7
Disambiguating Country Names (01_08)
08:23
8
Converting Addresses to Coordinates (01_09)
19:50
9
U.S.-Specific Datasets (01_10)
17:35
10
Advice on Finding International Datasets (01_11)
09:41
11
CRS and Projections: Geographic and Projected CRS (01_12)
12:33
12
CRS and Projections: How to Choose a CRS (01_13)
13:20
13
Introducing Raster GIS with raster and stars (01_14)
05:35
14
Basics of Using the raster Package (01_15)
02:37
1
ggplot2 Essentials (02_01)
20:17
2
Starting a Map in ggplot2 (02_02)
06:31
3
Labelling ggplot2 Maps (02_03)
16:05
4
Compare Locations/Events with Geobubble Charts (02_04)
10:29
5
Highlight a Region in a Country with ggplot2 (02_05)
13:46
6
Make a Choropleth Map of Discrete Variables with ggplot2 (02_06)
14:59
7
Make a Choropleth Map of Continuous Variables with ggplot2 (02_07)
08:43
8
Faceting Choropleth Maps with ggplot2 (02_08)
07:39
9
Visualize Raster Data with ggplot2 (02_09)
07:59
10
Adding Scale Bars and North Arrows with ggplot2 (02_10)
02:10
1
What is leaflet? (03_01)
04:42
2
Starting a Map in leaflet (03_02)
08:09
3
Necessary HTML for Labelling leaflet Maps (03_03)
12:41
4
Highlight a Region in a Country with leaflet (03_04)
08:57
5
Compare Locations/Events with Geobubble Charts in leaflet (03_05)
10:57
6
Make a Choropleth Map of Discrete Variables with leaflet (03_06)
13:36
7
Make a Choropleth Map of Continuous Variables with leaflet (03_07)
09:40
8
Visualize Raster Data with leaflet (03_08)
11:13
You need to be signed-in to comment on this post. Login.
Jordan Trachtenberg • April 29, 2022
Hi Charlie,
I'm getting an error when I try to run the script at 4:37. Any idea why this is happening?
Error in loadNamespace(name) : there is no package called ‘prettymapr’ > install.packages("prettymapr") Installing package into ‘C:/Users/trachten/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) Warning in install.packages : dependency ‘rjson’ is not available
There is a binary version available but the source version is later: binary source needs_compilation prettymapr 0.2.2 0.2.3 FALSE
installing the source package ‘prettymapr’
trying URL 'https://cran.rstudio.com/src/contrib/prettymapr_0.2.3.tar.gz' Content type 'application/x-gzip' length 871467 bytes (851 KB) downloaded 851 KB
ERROR: dependency 'rjson' is not available for package 'prettymapr'
The downloaded source packages are in ‘C:\Users\trachten\AppData\Local\Temp\RtmpUZkfJf\downloaded_packages’
Jordan Trachtenberg • April 29, 2022
Hi Charlie. I figured it out. I had to update my R version to 4.2.0 and update RStudio ("Prairie Trillium" Release (8acbd38b, 2022-04-19) for Windows). It seems to be working now.