Create a new CategoricalLegend object.
Value
A CategoricalLegend object.
Examples
# create new object
l <- new_categorical_legend(c(0, 1, 2), c("#000000", "#444444", "#AAAAAA"))
# print object
print(l)
#> <CategoricalLegend>
#> Public:
#> clone: function (deep = FALSE)
#> colors: #000000 #444444 #AAAAAA
#> export: function ()
#> get_color_map: function ()
#> get_resample_method: function ()
#> get_widget_data: function ()
#> initialize: function (values, colors)
#> values: 0 1 2