inst/examples/deckgl-api-reference/heatmap-layer.R

## @knitr heatmap-layer
data("sf_bike_parking")

map <- deckgl() %>%
  add_heatmap_layer(
    data = sf_bike_parking,
    getPosition = ~lng + lat,
    getWeight = ~spaces
  ) %>%
  add_basemap()

if (interactive()) map
crazycapivara/deckgl documentation built on March 29, 2023, 4:10 a.m.