32  Interactive Map Basics

Readings

In Leaflet for R read the following articles:

  • Using Basemaps
  • Choropleths
  • Add color to a leaflet
  • Markers
  • Popups and Labels
  • Lines and Shapes
  • Show/Hide Layers

A gallery of tiles to consider is the Leaflet Providers Preview

Guided Instruction

  1. Publishing to a Shiny Server for Interactive Files
  2. Leaflet Basic.Rmd
  3. (optional) Answer Key to Above Guided Instructions

You can recreate a previous map task, or find your own spatial data to display using leaflet. Consider using layers and control boxes to show time or other aspects of the data.

  1. Choose an option:
    • Recreate a previous task visualization using a simple leaflet plot using R OR
    • Find your own spatial data that interests you and build a simple interactive map using leaflet
  2. Publish your visualization to Posit Connect at shiny.byui.edu
  3. (optional) Paste the link to your Posit Connect file in a readme.md file on GitHub

Submit

In I-learn submit the link to your Posit Connect file. Ensure permissions are set to allow the teacher and TA viewing access.