color.choose: Choose colors interactively from a grid

Description Usage Arguments Details Author(s) Examples

Description

color.choose

Usage

1
color.choose(detail = 100, pick = TRUE)

Arguments

detail

an integer specifying the smoothness of color chart. In essence it gives the NxN dimensions of the displayed color grid, which in turn dictates how many colors are displayed. Large values may slow down the process. Defaults to 200 (40 000 colors).

pick

logical, whether or not the user should be allowed to select a color. If pick == FALSE locations of the colors are returned. This may be useful if you want to pick colors from within another function.

Details

color.choose helps to quickly select colors from a grid for usage in R graphics. See the example below for usage details. This version gives a much prettier grid of colors in a range of hue and lightness values compared to the simpler color.pick function.

Author(s)

Marco D. Visser

Examples

1
2
3
# pick a color
mycol<-color.choose()
plot(rnorm(100),col=mycol)

MarcoDVisser/choosecolor documentation built on May 7, 2019, 2:49 p.m.