Description Usage Arguments Value Examples
plot and show hex values of colors
1 | show_colors(colors, show.legend = TRUE, ncols = NULL, alpha = NA)
|
colors |
character vector of hex value colors |
show.legend |
show the legend with hex values (logical) |
ncols |
number of columns in the plot |
alpha |
set alpha level for all colors |
A plot with the index of the color in the tile
1 2 3 4 | show_colors(mejr_palette())
show_colors(topo.colors(25))
show_colors(cm.colors(64), FALSE)
show_colors(viridisLite::viridis(15), alpha = .8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.