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?

Submission

Here are the cities of India

library(knitr)
## Warning: package 'knitr' was built under R version 3.5.3
library(leaflet)
## Warning: package 'leaflet' was built under R version 3.5.3
library(dplyr)
## Warning: package 'dplyr' was built under R version 3.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
m <- leaflet() %>%
  addTiles() %>%  # Add default OpenStreetMap map tiles
  addMarkers(lat=28.65, lng=77.23, popup="Delhi") %>%
  addMarkers(lat=19.07,lng=72.88, popup="Mumbai") %>%
  addMarkers(lat=12.97,lng=77.59, popup="Banglore") %>%
  addMarkers(lat=22.56,lng=88.36, popup="Kolkata") %>%
  addMarkers(lat=13.09,lng=80.28, popup="Chennai") %>%
  addMarkers(lat=17.38,lng=78.46, popup="Hyderabad") %>%
  addMarkers(lat=26.92,lng=75.79, popup="Jaipur") %>%
  addMarkers(lat=9.94,lng=76.26, popup="Cochin")
m  # Print the map