plot_colors: Plot Colorpalettes

View source: R/plot_colors.R

plot_colorsR 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))

seqHMM documentation built on July 9, 2023, 6:35 p.m.