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!

Submission

Created a data frame with 200 observations from places from Peru. By zooming, the cluster will split until individual markers appear.

library(leaflet)
## Warning: package 'leaflet' was built under R version 3.6.3
library(knitr)
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
set.seed(123)
df=data.frame(lat=runif(200,min = -12.08,max = -12.02),lng=runif(200,min =-77.11 ,max =-77.00 ))
df%>%leaflet()%>%
  addTiles()%>%
  addMarkers(clusterOptions = markerClusterOptions())