From the course: R: Interactive Visualizations with htmlwidgets
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create interactive geolines maps - R Tutorial
From the course: R: Interactive Visualizations with htmlwidgets
Create interactive geolines maps
- [Instructor] Before I show you how to draw lines between points in Leaflet. It's important that we first talk a little bit about GIS theory. In this map, we see there are two lines between my place of work in the UK and Lynda's office in California. The curved line represents the shortest distance between these two locations and closely approximates my flight path. The straight line however, represents a significantly longer path between the two points. This is because in order to have a flat map, we have had to project a curved surface into a flat surface. I'm not particularly interested in showing you the mathematics behind it, but what I will do is promote a beautiful video from vox.com that will hopefully demonstrate how's it's really important for you to check your preconceptions about maps before doing actual GIS analysis or visualization using Leaflet. So if we want to draw great circles, ie to represent the shortest distance between points on a map, we need to use the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
What is the Leaflet library?6m 10s
-
(Locked)
Create interactive scattergeo maps9m 56s
-
(Locked)
Change map styles in Leaflet4m 36s
-
(Locked)
Prepare data for a choropleth plot9m 48s
-
(Locked)
Create interactive choropleth maps10m 7s
-
(Locked)
Create interactive geolines maps13m 50s
-
(Locked)
Add legends to Leaflet maps7m 52s
-
(Locked)
Extract click information from Leaflet6m 35s
-
-
-
-
-
-