I'm looking to make a map using Leaflet in R, where the clusters shows the sum of a variable associated with the markers, instead of the number of markers in the area.
For example: If there are 4 markers in a cluster. Each marker has a number of dollars associated with that location: Point 1: 10 Point 2: 15 Point 3: 15 Point 4: 1
The cluster should read 41 instead of 4. Is there a way to do this in leaflet?
Also I have too many data points and dollar amounts to break each point down into 1 voucher for each dollar.