How would I add some heatmaps plates to a leaflet map?
Say I have some spatial econometrics model and I want to plot prediction to a leaflet map like in the picure attached[![enter image description here][1]][1]
For now I have a simple code in R
that goes like this:
m <- leaflet() %>% addProviderTiles("Esri.OceanBasemap") %>% addCircles(lat=df$latitude,lng=df$longitude, radius = 100, color = "green", opacity = 0.45, weight = 7) %>%
addCircles(lat=df2$latitude,lng=df2$longitude, radius = 100, color = "#FC4E07", opacity = 0.45, weight = 7)