Maplibre
R-bloggers 2025-11-17
Summary:
Heatmap of the french population
Day 17 of 30DayMapChallenge: « A new tool » (previously). Testing Maplibre with {mapgl}.
library(dplyr) library(mapgl) library(sf)
Data Using french communes population.
pop st_centroid() |__ select(population)
Map
maplibre(center = c(5, 45), zoom = 6) |__ add_heatmap_layer( id = "pop", source = pop, heatmap_weight = interpolate( column = "population", values = ...