Geo-mapping using Leaflet
Geo-mapping is the process of placing markers representing data in a geographic context, typically using latitude and longitude. Leaflet is an open source JavaScript library for building interactive geo-maps with ease. Why are we talking about a JavaScript mapping library in an R book? The R package leaflet
is a wrapper around this JavaScript library that translates most of its functionality into a set of R functions. It allows analysts to visualize geospatial data easily. With this package, you can generate maps from within RStudio or embed them in R Markdown documents or Shiny web applications.
Note
Use case: Geo-mapping Bike Stations
Remember when you supported management by creating a business case for the location of customer service kiosks? You had data on each of the 244 Bike Sharing stations throughout the city. Go ahead and pull this same data from the file called Ch7_bike_station_locations.csv
, located on the book's website at
http://jgendron.github.io...