new_categorical_legend: New categorical legend

View source: R/class_CategoricalLegend.R

new_categorical_legendR Documentation

New categorical legend

Description

Create a new CategoricalLegend object.

Usage

new_categorical_legend(values, colors)

Arguments

values

numeric Values to show in the legend.

colors

character Colors to show in the legend. These colors should be in hex format (e.g. "#AABBCC").

Value

A CategoricalLegend object.

Examples

# create new object
l <- new_categorical_legend(c(0, 1, 2), c("#000000", "#444444", "#AAAAAA"))

# print object
print(l)

NCC-CNC/wheretowork documentation built on Feb. 27, 2025, 6:11 p.m.