R/layers_screen-grid-layer.R

Defines functions add_screen_grid_layer

Documented in add_screen_grid_layer

#' Add a screen grid layer to the deckgl widget
#'
#' The \code{ScreenGridLayer} takes in an array of latitude and longitude coordinated points,
#' aggregates them into histogram bins and renders as a grid.
#'
#' @inheritParams add_layer
#'
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/screen-grid-layer}
#'
#' @example inst/examples/deckgl-api-reference/screen-grid-layer.R
#'
#' @export
add_screen_grid_layer <- function(deckgl, id = "screen-grid-layer", data = NULL, properties = list(), ...) {
  add_layer(deckgl, "ScreenGridLayer", id, data, properties, ...)
}

Try the deckgl package in your browser

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

deckgl documentation built on July 1, 2020, 7:36 p.m.