R: Plot All Named R Colors

ColPicker {DescTools} | R Documentation

## 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()`.

### Author(s)

Andri Signorell <andri@signorell.net>

### See Also

`ColorDlg`, `par`, `colors`, `PlotPch`

### Examples

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

[Package DescTools version 0.99.26 Index]