plot_colors | R Documentation |
Function plot_colors
plots colors and their labels for easy
visualization of a colorpalette.
plot_colors(x, labels = NULL)
x |
A vector of colors. |
labels |
A vector of labels for colors. If omitted, given color names are used. |
See e.g. the colorpalette
data and RColorBrewer
package for ready-made color palettes.
plot_colors(colorpalette[[5]], labels = c("one", "two", "three", "four", "five"))
plot_colors(colorpalette[[10]])
plot_colors(1:7)
plot_colors(c("yellow", "orange", "red", "purple", "blue", "green"))
plot_colors(rainbow(15))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.