DescTools (version 0.99.19)

ColPicker: Plot All Named R Colors

Description

ColPicker() plots the R-colors in a dense manner and allows to collect some colors by using a locator. This can be helpful when some colors should be put together to a palette.

Usage

ColPicker(locator = TRUE, ord = c("hsv", "default"), label = c("text", "hex", "dec"), mdim = c(38, 12), newwin = FALSE)

Arguments

locator
logical, defines if the colors can be selected by mouseclick. Default is TRUE.
ord
the order of the colors, can be either defined by hsv-value or by the R internal color-number. Default is the latter.

label
label for the colors, can be the colorname (text), the hex-code (#RRGGBB) or the decimal RGB-number

mdim
the dimension of the color matrix. Default is 38 rows and 12 columns.
newwin
logical, defining if a new graphic device should be used. Default is FALSE.

Details

The function plots all the colors but leaves out the grey scales grey() and gray().

See Also

par, colors, PlotPch

Examples

Run this code
ColPicker(locator=FALSE, ord="hsv")
ColPicker(locator=FALSE, label="hex")

Run the code above in your browser using DataLab