plot_colors {seqHMM} | R Documentation |
Plot Colorpalettes
Description
Function plot_colors
plots colors and their labels for easy
visualization of a colorpalette.
Usage
plot_colors(x, labels = NULL)
Arguments
x |
A vector of colors. |
labels |
A vector of labels for colors. If omitted, given color names are used. |
See Also
See e.g. the colorpalette
data and RColorBrewer
package for ready-made color palettes.
Examples
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))
[Package seqHMM version 1.2.6 Index]