Description Usage Arguments Value Examples
View source: R/display.colors.R
Display a vector of colors for viewing
1  | display.colors(cols)
 | 
cols | 
 A character vector of colors  | 
An tiled image with color labels as a gg object
1 2 3 4 5 6 7  | display.colors(colors()[58:61])
m <- matrix(c(1,0.5, 0, 0.5, 0.2, 0.9, 0.2, 1, 1, 0.3, 0.6, 0.2), ncol = 3)
display.colors(rgb(m))
pal <- colorRampPalette(c('blue', 'yellow', 'pink'))
display.colors(pal(10))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.