How do I customize the coloring of the addMarkers function in the leaflet package for R?
The default coloring for clusters is:
- 1-10 Green
- 11-100 Yellow
- 100+ Red
I'd like to change the ranges and colors to something like:
- 1-100 Red
- 101-1000 Yellow
- 1000+ Green
JS Leaflet has this capability: https://github.com/Leaflet/Leaflet.markercluster#customising-the-clustered-markers
Is this possible through a markerClusterOptions parameter in the R package?
leaflet(quakes) %>% addTiles() %>% addMarkers(
clusterOptions = markerClusterOptions()
)