get_lut | R Documentation |
Retrieve one or more of color specifications as hex, rgb triplets or a data.frame
get_lut(LUT, index, form = c("hex", "rgb", "data.frame")[1], name = FALSE)
LUT |
a color look-up table data frame. See |
index |
a vector of numeric or character indices to retrieve colors, if missing then all are returned. If the look-up table has row names, then one can use those for indexing. |
form |
character, either 'hex', 'rgb' or 'data.frame' |
name |
logical, ignored if form is 'data.frame' |
color values in the form specified
a character vector of hexidecimal strings, this is the default
a 3-column matrix of red, green and blue values
a 4 column data frame, see GLASBEYLUT
lut <- get_lut(WADLUT, 3:16, form = 'hex', name = TRUE)
plot(3:16, pch = 19, col = lut, cex = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.