Hi,
It's quite simple, add below snippet along with other leaflet properties.aa
The clusters are automatic formed using mastercluster.
leaflet(dataframe) %>% addTiles() %>% addMarkers(
clusterOptions = markerClusterOptions(),lat,lng
)
or
dataframe %>% leaflet() %>% addTiles() %>% addMarkers(
clusterOptions = markerClusterOptions(),lat,lng
)