Plot colour swatches for a vector of colours

Share:

Description

Plot named colour swatches for a vector of colours.

Usage

1
swatch(x)

Arguments

x

a vector of colours, specified as: colour names (i.e. colour names returned by colors()); numeric indices into palette(), or hexadecimal strings in the form '#RRGGBB', where RR, GG, and BB are pairs of hexadecimal digits representing red, green, and blue components, in the range 00 to FF.

Value

NULL. The colour swatch is plotted to the active plotting device.

See Also

iwanthue

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.