rMaps and Leaflet Presentation

rMaps and Leaflet links to get you started

What is Leaflet?

  • LeafletJS is a JavaScript library for creating interactive maps and mapping applications.
  • Leaflet for R is an R package that leverages the LeafletJS library to allow simple creation of interactive maps directly from data in R.
  • The Good:

  • LeafletJS: A more mature library that allows for fine control of basic map functions. Requires a working knowledge of JavaScript.
  • Leaflet for R: An intuitive and powerful package that can be picked up quickly by R users. Building interactive maps takes only a few lines of code.
  • The Bad:

  • LeafletJS: Harder to pick up without working JS knowledge. Features great for basic mapping, but more complext styles are difficult, if even possible.
  • Leaflet for R: This package is young and still under active development, so feature set isn't fully fleshed out.
  • * Leaflet for R Walkthrough/Demo

    What is rMaps?

    • Developed by: Ramnath Vaidyanathan
    • Creator of: rChars, Slidify

    The Good:

    • Very preliminary library with a ton of potential.
    • Powerful in the right hands.

    The Bad:

    • Customization very difficult without working JS Knowledge.
    • Formatting data and correcting data type issues.

    The Ugly:

    The Future:

    Examples:

    rMaps Sample Code
    Mexico Crime Data
    Additional Examples

    Questions