pickColors: Pick colors up

View source: R/pickColors.R

pickColorsR Documentation

Pick colors up

Description

Generate an interactive interface to pick a set of colors up.

Usage

pickColors(n = 9, ramp = grDevices::rainbow(1024), nb_shades = 512)

Arguments

n

The number of colors to be selected (9 by default).

ramp

A vector of colors used as tone palette.

nb_shades

Number of shades to be displayed once a tone is selected.

Details

This function generates a graphical window split into 6 panels. The top panel serves to select one tone. The panel right below presents nb_shades of the selected tones. The bottom right panel displays the current selection that can be stored by clicking on the bottom left panel Keep it. The bottom center panel shows the characteristic of the selected color. Finally, in order to abort before completing the selection of colors, the user can simply click on the Stop panel (on the left).

Value

A character vector including the colors selected.


inSileco/graphicsutils documentation built on Sept. 12, 2022, 11:13 p.m.