R/layers_point-cloud-layer.R

Defines functions add_point_cloud_layer

Documented in add_point_cloud_layer

#' Add a point cloud layer to the deckgl widget
#'
#' The \code{PointCloudLayer} takes in points with 3d positions, normals and colors and renders them as spheres with a certain radius.
#'
#' @inheritParams add_layer
#'
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/point-cloud-layer}
#'
#' @example inst/examples/deckgl-api-reference/point-cloud-layer.R
#'
#' @export
add_point_cloud_layer <- function(deckgl, id = "point-cloud-layer", data = NULL, properties = list(), ...) {
  add_layer(deckgl, "PointCloudLayer", 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.