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

Create interactive geolines maps - R Tutorial

From the course: R: Interactive Visualizations with htmlwidgets

Start my 1-month free trial

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…

Contents