Learn R Programming

RSurvey (version 0.7-4)

ChooseColor: Set Graphic Color

Description

A GUI for selecting a graphic color.

Usage

ChooseColor(col, parent = NULL)

Arguments

col
character; the initial color, see Value.
parent
tkwin; the GUI parent window.

Value

  • Returns a selected color in terms of its RGB components with a string of the form "#RRGGBB" where each of the pairs RR, GG, BB consist of two hexadecimal digits giving a value in the range 00 to FF.

See Also

col2rgb

Examples

Run this code
ChooseColor(col = "#669933")

Run the code above in your browser using DataLab