add_legend_pal: Add a legend to the deckgl widget using a palette func

View source: R/legend_pal.R

add_legend_palR Documentation

Add a legend to the deckgl widget using a palette func

Description

Add a legend to the deckgl widget using a palette func

Usage

add_legend_pal(deckgl, pal, ...)

Arguments

deckgl

A deckgl widget object.

pal

A palette function that is used to create the legend elements (colors and labels) automatically.

...

Parameters that are passed to add_legend.

See Also

col_numeric et cetera for how to create a palette function.


crazycapivara/deckgl documentation built on March 29, 2023, 4:10 a.m.