add_legend: Add a legend to the deckgl widget

View source: R/legend.R

add_legendR Documentation

Add a legend to the deckgl widget

Description

Add a legend to the deckgl widget

Usage

add_legend(
  deckgl,
  colors,
  labels,
  title = NULL,
  pos = "top-right",
  style = NULL,
  ...
)

Arguments

deckgl

A deckgl widget object.

colors

The colors of the legend items.

labels

The labels corresponding to the colors of the legend items.

title

The title of the legend.

pos

The position of the control. Possible values are top-left, top-right, bottom-right and bottom-left.

style

A cssText string that will modefiy the default style of the element.

...

not used


deckgl documentation built on March 7, 2023, 5:37 p.m.