Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Maps with R Leaflet
Rating: 4.2 out of 5(358 ratings)
5,092 students

Maps with R Leaflet

Transform your data into interactive maps!
Created byGregory Sward
Last updated 8/2018
English

What you'll learn

  • Create a dynamic map with a customized theme.
  • Overlay data on maps.
  • Add interactive data labels and controls.
  • Show summary statistics with choropleth maps.
  • Use RMarkdown to create and share reports that contain dynamic maps.
  • Use RShiny to enhance the dynamic features of Leaflet and share ours map as a web app.

Course content

7 sections16 lectures2h 26m total length
  • Introduction and Downloads3:06

    The course data and code are contained in the R Leaflet.zip file.  You will need to download and unzip this file for the course.

  • Project Setup5:10

    Set up a leaflet map project in RStudio by downloading and unzipping data and code, creating a project and script, importing the data folder, and installing the leaflet package.

  • Our First Map!5:39

    Load the leaflet package, create an html widget with leaflet(), add a base map with addTiles, and setView to Alaska to demonstrate a layered, pipe operator workflow.

  • The Pipe Operator7:49

    See how the pipe operator from the Margaretha package chains map transformations in R Leaflet, forwarding the map through ad_tiles and set_view for clearer, minimal code.

Requirements

  • RStudio
  • A beginner understanding of R

Description

Leaflet.js is one of the most popular libraries for creating beautiful looking maps. Companies like Facebook, Pinterest, and The Washington Post use Leaflet to create maps that draw-in and engage viewers in a unique way.

In this course, we'll be using the Leaflet package for R to analyze FBI homicide data in the United States.

Who this course is for:

  • People who like using R and who wish to become proficient in creating maps to represent their data.