Week 2 Assignment: R Markdown and Leaflet

The purpose of this assignment is to plot an interactive map with the package “Leaflet”

Below is a plot of the Palm Island in Dubai.

library(leaflet)
library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
my_map <- leaflet() %>%
  addTiles() %>%
  addMarkers(lat=25.107984 , lng=55.144549, popup = "Looks cool")
my_map