# HexagonLayer

The HexagonLayer renders a hexagon heatmap based on an array of points. It takes the radius of hexagon bin, projects points into hexagon bins. The color and height of the hexagon is scaled by number of points it contains.

sample_data <- paste0(
"https://raw.githubusercontent.com/",
"uber-common/deck.gl-data/",
"master/website/sf-bike-parking.json"
)

properties <- list(
extruded = TRUE,
getTooltip = JS("object => ${object.centroid.join(', ')}<br/>Count:${object.points.length}"),
if (interactive()) deck