This project uses the library leaflet, which is responsible for creating interactive maps. The purpose of this project is to create a webpage using R Markdown using Leaflet, have it hosted on GitHub Pages or Rpubs, and contain a map/date.
library(leaflet)
## Warning: package 'leaflet' was built under R version 4.1.2
I will be plotting 10 random points (longitude/latitude) and plotting it on the map.
set.seed(1919)
df <- data.frame(lat= runif(10, min = 0, max = 50), long=runif(10, min = 50, max = 100))
df %>%
leaflet(width = 900) %>%
addTiles() %>%
addMarkers(clusterOptions = markerClusterOptions(), popup = "Your randomized point!")