R/layers_scatterplot-layer.R

Defines functions add_scatterplot_layer

Documented in add_scatterplot_layer

#' Add a scatterplot layer to the deckgl widget
#'
#' The \code{ScatterplotLayer} takes in paired latitude and longitude coordinated points
#' and renders them as circles with a certain radius.
#'
#' @inheritParams add_layer
#'
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/scatterplot-layer}
#'
#' @example inst/examples/deckgl-api-reference/scatterplot-layer.R
#'
#' @export
add_scatterplot_layer <- function(deckgl, id = "scatterplot-layer", data = NULL, properties = list(), ...) {
  add_layer(deckgl, "ScatterplotLayer", 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.