swatch {hues} | R Documentation |
Plot named colour swatches for a vector of colours.
swatch(x)
x |
a vector of colours, specified as: colour names (i.e. colour names
returned by |
NULL
. The colour swatch is plotted to the active plotting device.
swatch(colours()[1:10])
swatch(1:4)
swatch(iwanthue(5))