resolveColors.ggobi {Rggobi}R Documentation

Map names to color values in a ggobi instance.

Description

This currently does not work but will when color schemes are enabled in GGobi.

Colors in ggobi are represented by entries in a color table or matrix as Red, Green and Blue values. To set a color, one can identify the entry in that table either by number/index or by name. This function maps color names to the corresponding index so that these values can be passed to the low-leve C routines. This function is typically called internally.

Usage

resolveColors.ggobi(..., .gobi=getDefaultGGobi())

Arguments

... names of colors to be resolved in the default color map of the ggobi instance.
.gobi the ggobi instance whose default color map is to be used to resolve the names.

Value

An integer vector specifying the indices of the entries in the color map corresponding to the specified names.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

getColors.ggobi setColors.ggobi getColorMap.ggobi setColorMap.ggobi

Examples

  g <- ggobi(system.file("data", "flea.xml", package="Rggobi"))
## Not run: 
  g$resolveColors("red", "green")
## End(Not run)

[Package Contents]