Coursera Course 9- Developing Data Products using RMarkdown and Leaflet

Loading the leaflet package (and installing if necessary)

  if(require(leaflet)==FALSE)(install.packages("leaflet")); library(leaflet)

My first Map

my_firstMap <- leaflet() %>%
   addTiles()
   
my_firstMap <- my_firstMap %>%
    addMarkers(lat=50.8467, lng=4.3525,
             popup="The most beautiful square in the world.")

 

my_firstMap