<span class='navbar-title'>DISEASE<span class='title-line'></span>OUTBREAKS</span>
  • About
  • Blog
  • Data and analysis
    • Data explorer
    • Disease outbreaks map
    • Interactive dashboard
  • Outreach
  • Get involved

On this page

  • Step 1: Load libraries
  • Step 2: Load data from GitHub
  • Step 3: Load geospatial data
  • Step 4: Reshape the data
  • Step 5: Add the geographic attributes to the outbreaks data
  • Step 6: Making the interactive map

Making interactive choropleths for disease outbreaks data using leaflet in R

leaflet
maps
code
Author

Juan Armando Torres Munguía, PhD

Published

October 15, 2024

In these notes, you’ll learn how to load the data from the GitHub repository of the disease outbreaks project and use the leaflet library in R to create a choropleth map showing the geographic distribution of disease outbreaks from 1996 to September 30, 2024.

The final output will look like this: