Developing Data Products Week 2 Assignment

Jayasree Kulothungan 28/08/2020

Instructions

Create a web page using R Markdown that features a map created with Leaflet.

Host your webpage on either GitHub Pages, RPubs, or NeoCities.

Your webpage must contain the date that you created the document, and it must contain a map created with Leaflet. We would love to see you show off your creativity!

Review criteria

The rubric contains the following two questions:

Does the web page feature a date and is this date less than two months before the date that youโ€™re grading this assignment? Does the web page feature an interactive map that appears to have been created with Leaflet?

Import Libraries

library(knitr)
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

MAP

An Interactive map that shows the Eiffel Tower, Notre Dame Cathedral and Louvre Museum in Paris created using Leaflet

map <- leaflet() %>%
  addTiles() %>%  # Add default OpenStreetMap map tiles
  addMarkers(lat=48.867772, lng=2.292070, popup="Eiffel  Tower, Paris") %>%
  addMarkers(lat=48.853113,lng=2.349913, popup="Notre Dame Cathedral, Paris") %>%
  addMarkers(lat=48.860414,lng=2.338650, popup="Louvre Museum, Paris")
  
map  # Print the map