View source: R/class_CategoricalLegend.R
new_categorical_legend | R Documentation |
Create a new CategoricalLegend object.
new_categorical_legend(values, colors)
values |
|
colors |
|
A CategoricalLegend object.
# create new object
l <- new_categorical_legend(c(0, 1, 2), c("#000000", "#444444", "#AAAAAA"))
# print object
print(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.