R/layers_arc-layer.R

Defines functions add_arc_layer

Documented in add_arc_layer

#' Add an arc layer to the deckgl widget
#'
#' The \code{ArcLayer} renders raised arcs 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/arc-layer}
#' @example inst/examples/deckgl-api-reference/arc-layer.R
#' @export
add_arc_layer <- function(deckgl, data = NULL, properties = list(), ..., id = "arc-layer") {
  add_layer(deckgl, "ArcLayer", data, properties, ..., id = id)
}
crazycapivara/deckgl documentation built on March 29, 2023, 4:10 a.m.