For the Course “Developing Data Products” in Coursera, the first Assignment 1 requires the creation of an interactive map using Leaflet library in R.
Following contains the codes and results:
#install.packages("leaflet")
#install.packages("dplyr")
library(leaflet)
## Warning: package 'leaflet' was built under R version 4.5.3
library(dplyr)
## Warning: package 'dplyr' was built under R version 4.5.3
##
## 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
#Create the Map
my_map <- leaflet() %>%
addTiles() %>%
addMarkers(lat=39.298083,lng=-76.5898801,popup="Sample Marker Point")
my_map