Adding markers

You can add markers to your map one at a time using the addmarkers() function.

The code chunk below places a marker at a given latitude and longitude and creates a popup identifier:

my_map <- leaflet() %>%
  addTiles() %>%
  addMarkers(lat = -77.849459, lng = 166.667795,
             popup="Antartica")
my_map