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

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.

Value

A character vector including the colors 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).