Introduction to Leaflet
September 12, 2016
What Is Leaflet?
Leaflet is available as a package on CRAN (https://cran.r-project.org/web/packages/leaflet/index.html), so it can easily be downloaded from the command line in RStudio:
Simple Map Using Leaflet
See the Shiny app version of this R code here.
Note: The “%>%” symbol is a magrittr pipe operator (http://blog.revolutionanalytics.com/2014/07/magrittr-simplifying-r-code-with-pipes.html). The code below is equivalent to the above code and does not use pipes.