Coursera / John Hopkins Data Science Specialization

Course 9 - Week 2 Course Project

Creating an Interactive Map with Current Date

Author: LT

library(leaflet)
## Warning: package 'leaflet' was built under R version 3.5.2
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
# Insert current date/time
date <- Sys.time()

Current Date: 2020-05-28 12:55:41

# Insert interactive map
my_map <- leaflet() %>% 
  addTiles() %>%
  addMarkers(lat = 49.246292, lng = -123.116226, popup = "My location")
my_map