Ratios/Percentages in R Leaflet -


i trying display percentages on leaflet cluster map using r.

for example:

the quakes data set in leaflet looks this:

head(quakes)       lat   long depth mag stations 1 -20.42 181.62   562 4.8       41 2 -20.62 181.03   650 4.2       15 3 -26.00 184.10    42 5.4       43 4 -17.97 181.66   626 4.1       19 5 -20.42 181.96   649 4.0       11 6 -19.68 184.31   195 4.0       12 

i create cluster map leaflet package following code:

leaflet(quakes) %>% addtiles() %>% addmarkers(clusteroptions = markerclusteroptions()) 

the code renders map clusters , uses counts labels.

clustermap example:

enter image description here

how go using average of 'mag' column label clusters? still want ability zoom in , out of map.

i hope makes sense.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -