R/layers_line-layer.R

Defines functions add_line_layer

Documented in add_line_layer

#' Add a line layer to the deckgl widget
#'
#' The \code{LineLayer} renders flat lines joining pairs of source and target points,
#' specified as latitude/longitude coordinates.
#'
#' @inheritParams add_layer
#'
#' @seealso \url{https://deck.gl/#/documentation/deckgl-api-reference/layers/line-layer}
#'
#' @example inst/examples/deckgl-api-reference/line-layer.R
#'
#' @export
add_line_layer <- function(deckgl, id = "line-layer", data = NULL, properties = list(), ...) {
  add_layer(deckgl, "LineLayer", 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.