Developing Data Products - R Markdown and Leaflet

Create my first map

Set up the libraries

library(leaflet)

Make my map

These are the most important cities in Colombia

df <- read.csv("COLOMBIA_CITIES.csv")
df %>% leaflet() %>%
  addTiles() %>%
  addMarkers(
    lat = df$LAT, 
    lng = df$LONG, 
    popup = df$CITY)