Add “rgb” legend to R leaflet heatmap
问题 I made some interactive heatmaps using leaflet (particularly the addHeatmap() command from the leaflet.extras package) and shiny . Having created a desired map, I would like to add a legend to it. What I am interested in is a "rgb" legend, based on density values deduced by addHeatmap() from pure long/lat coords. What I need is something like this map - https://www.patrick-wied.at/static/heatmapjs/example-legend-tooltip.html - unfortunately I have no knowledge of JS and can't rewrite this