Leaflet Map Example

This document demonstrates an interactive Leaflet map created using R Markdown.

if (!require(leaflet)) {
  install.packages("leaflet", repos = "https://cloud.r-project.org")
  library(leaflet)
}
leaflet(data = NULL) %>%
  addTiles() %>%
  addMarkers(
    lng = 77.5946,
    lat = 12.9716,
    popup = "Bangalore, India"
  )