Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

utils-colorLocator

Color Selection


Description

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

Usage

colorLocator(locator = FALSE, cex.axis = 0.7)
colorMatrix()

Arguments

locator

logical, if true, locator is used for interactive selection of color names, default is FALSE.

cex.axis

size of axis labels.

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 is true, returns matrix with graph coordinates and names of colors selected. colorsMatrix() quietly returns the matrix of names.

See Also

Examples

colorLocator()

fBasics

Rmetrics - Markets and Basic Statistics

v3042.89.1
GPL (>= 2)
Authors
Diethelm Wuertz [aut], Tobias Setz [cre], Yohan Chalabi [ctb] Martin Maechler [ctb]
Initial release
2017-11-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.