Introduction

This is the “Developing Data Products course” assignment in which a map is created using leaflet. The chosen location is Rio de Janeiro, Brazil.

Environment

library(leaflet)
## Warning: package 'leaflet' was built under R version 4.0.2

Code

I create an interactive map with a pin and pop up one of the most beautiful place in the world. For more information about this place, click the link.

mapRJ<-leaflet()%>%addTiles()%>%
    addMarkers(lng = -43.157222,lat = -22.948611,popup = "Sugarloaf Mountain (Pao de Acucar), Rio de Janeiro, Brazil")
mapRJ