Using Leaflet to Create Maps

Candace Ng
July 12, 2020

Background

This article briefly outlines how the leaflet package was used to display a simple map pinpointing Google Headquarters in Mountain View, CA.

library(leaflet)
googlehq <- c("<a href='https://en.wikipedia.org/wiki/Googleplex'>Google HQ</a>")
leaflet() %>%
  addTiles() %>%
  addCircleMarkers(lat=37.419857, lng=-122.078827, popup=googlehq)