I've a dataset with locations and their frequencies (sum of counts)
I want the leaflet cluster to display the frequencies as pointers instead of the count of occurrences.
city state latitude longitude Count San Juan PR 18.410462 -66.060533 5 Honolulu HI 21.2782 -157.82199 8 Boca Raton FL 26.391346 -80.21824 17 Key Biscayne FL 25.700966 -80.16195 2
I use the function
leaflet(df) %>% addTiles() %>% addMarkers( clusterOptions = markerClusterOptions(), )
to display the map, but it displays the count of each location pointer as one, regardless of the frequency. How do I customize the code so that it displays the frequencies instead of counts in pointers ?
This is how I want my end result as