I want to do a map in R, that will show the points in clusters when you zoom in/zoom out and in the same time show a aggregate value. Now I have this code:
m <- leaflet(acdt_1, width = "200%", height = "800px") %>%
addProviderTiles("OpenStreetMap") %>%
addMarkers(clusterOptions = markerClusterOptions())
This gives me a map with all the points, grouped in clusters and it shows the no of points in every cluster when zoom in/zoom out.
Instead of the no of points in every cluster, I want a value (sum of a specific value for every points).
Any idea?
Thank you,