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 = …