Defines functions add_hexagon_layer

Documented in add_hexagon_layer

#' Add a hexagon layer to the deckgl widget
#' The \code{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.
#' @inheritParams add_layer
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/hexagon-layer}
#' @example inst/examples/deckgl-api-reference/hexagon-layer.R
#' @export
add_hexagon_layer <- function(deckgl, data = NULL, properties = list(), ..., id = "hexagon-layer") {
  add_layer(deckgl, "HexagonLayer", data, properties, ..., id = id)

Try the deckgl package in your browser

Any scripts or data that you put into this service are public.

deckgl documentation built on March 7, 2023, 5:37 p.m.