Assignment

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?

Steps

  1. Using data from - http://www.distancelatlong.com/country/india
  2. Copy all data from above website into a csv file.
  3. excecute below instructions.
library(leaflet)

statesin <- read.csv("indiastates.csv")



my_map <- leaflet() %>%
  addTiles() %>%
  addMarkers(lat= statesin$Latitude,lng=statesin$Longitude,popup=statesin$states_name)

  
my_map

Click the markers to view all the states name.