trafficonese / leaflet.extras

Extra functionality for leaflet R package.
https://trafficonese.github.io/leaflet.extras/
GNU General Public License v3.0
216 stars 74 forks source link

whish: summary by proportion on heatmaps #60

Closed Athospd closed 7 years ago

Athospd commented 7 years ago

Hello,

In heatmaps we sum up values (passed to intensity argument) over a neibourhood. I would like to be able to aggregate these values with a summary function other than 'sum', for example a proportion of the sum of two variables (eg. sum(x1)/sum(x2), inside the neibourhood).

Is it possible?

Thank you and congratulations for your package! Regards, Athos.

bhaskarvk commented 7 years ago

You should raise this on the original Leaflet.heat repo. That's the plugin I'm using and it does the calculations internally.