showPalette | R Documentation |
Displays a color palette and color details.
showPalette( x = palette(), inline = FALSE, add_number = TRUE, add_codecolor = TRUE, cex_num = 1.2 )
x |
a vector of colors. |
inline |
a logical. If |
add_number |
a logical. If |
add_codecolor |
a logical. If |
cex_num |
the magnification coefficient of the color vector's indices. |
The color palette displayed as an invisible output.
showPalette() showPalette(inline = TRUE) showPalette(1) showPalette(sample(1:100, 16), add_number = FALSE, add_codecolor = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.