colorLocator {fBasics}R Documentation

Color Selection

Description

Displays R's 657 named colors for selection and returns optionally R's color names.

Usage

 
colorLocator(locator = FALSE)
colorMatrix(locator = TRUE)

Arguments

locator a logical flag, activates locator for interactive selection of color names, default is FALSE.

Details

Color Locator:

The colorLocator function plots R's 657 named colors. If locator=TRUE then you can interactively point and click to select the colors for which you want names. To end selection, right click on the mouse and select 'Stop', then R returns the selected color names.

The functions used here are wrappers to the functions provided by Tomas Aragon in the contributed R package. epitools.

Value

Color Locator:
colorsLocator generates a plot with R colors and, when locator=TRUE, returns matrix with graph coordinates and names of colors selected. colorsMatrix quietly returns matrix of names.

See Also

link{colorPalette}, link{colorTable}.

Examples

## colorLocator -
   colorLocator()

[Package fBasics version 280.74 Index]