Clustering on a Map using R and Leaflet
Asked Answered
H

1

11

I am using leaflet in R (Just Starting to use it). I like the how the clustering/visualization is done in the post below. The programmer is using Java. What I can not find for leaflet / R, is how to create a cluster circle with number, that is a summary of the number of markers, which response to the number of markers present responding to zooming. I can get the different markers on the map, but not the response to zooming.

If this is is not possible in R/leaflet. What I am trying to show is: one zip code has 10 visits and one zip code has 1 visit. I want to use R/Shiny to create the project. If leaflet is not the best I am open to other options (googlevis?)I am new to mapping so I might be missing something simple...

Headdress answered 30/3, 2015 at 0:19 Comment(0)
H
11

This feature is documented here in the section "Marker Clusters".

You just need to add the option clusterOptions = markerClusterOptions() to your addMarkers() call.

Helsie answered 28/8, 2015 at 12:57 Comment(1)
It's so simple it feels like cheatingOvovitellin

© 2022 - 2024 — McMap. All rights reserved.