DiscreteColorPlane-class | R Documentation |
DiscreteColorPlane constructor taking list with names mapping to color values in hex representation. This object is used when one has a one to one mapping between discrete set of strings/values to discrete set of colors.
DiscreteColorPlane(lookup)
lookup |
a "lookup table", which is a named list mapping discrete values to hex colors |
a new DiscreteColorPlane
instance
lookup
a lookup table mapping values to hex colors
lookup <- as.list(col2hex(c("red", "blue", "green"))) names(lookup) <- c("a", "b", "c") cp <- DiscreteColorPlane(lookup) values <- c("a", "b", "c", "a", "c")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.