Overview

We will look to plot the Taj Mahal. First, we install the required packages.

library(leaflet)
## Warning: package 'leaflet' was built under R version 3.6.3

Creating the Map

Now, we will create a map.

my_map <- leaflet() %>%
addTiles()
my_map

Next, create a link to the official Taj Mahal website to obtain relevant data.

TajMahal <- c("<a href= 'https://www.tajmahal.gov.in/view_taj.html' >Taj Mahal</a>")
leaflet() %>%
addTiles() %>%
addMarkers(lat=27.173891, lng=78.042068, popup = TajMahal)

```