new_manual_legend: New manual legend

View source: R/class_ManualLegend.R

new_manual_legendR Documentation

New manual legend

Description

Create a new ManualLegend object.

Usage

new_manual_legend(values, colors, labels)

Arguments

values

numeric Values that are linked to the labels.

colors

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

labels

character Labels to show in the legend.

Value

A ManualLegend object.

Examples

# create new object
l <- new_manual_legend(c(0, 1), c("#000000", "#AAAAAA"), c("a", "b"))

# print object
print(l)

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