setBrushColor.ggobi {Rggobi}R Documentation

Set or retrieve the settings for the appearance of a ggobi brush

Description

The appearance of the ``brush'' – the control for the selection of points or a region – can be manipulated per ggobi instance. These functions control the color of the brush region and the points within it, and also the glyph used to display the selected points within this region.

Usage

setBrushColor.ggobi(id, .gobi=getDefaultGGobi())
getBrushColor.ggobi(.gobi=getDefaultGGobi())
setBrushGlyph.ggobi(type, size, .gobi=getDefaultGGobi())
getBrushGlyph.ggobi(.gobi=getDefaultGGobi())

Arguments

id the identifier for the color to which the corresponding value of the brush region is to be set. For a color, this can be either a name (as in the row names from getColorMap.ggobi or an integer identifying the particular row/entry of the color map.
type the identifier of the glyph
size an integer specifying the size to which the brush glyph should be set.
.gobi the ggobi identifier, either an object of class ggobi or an integer.

Value

The get methods return the current value for the attribute in effect at present. In the set methods, the value in effect before the call is returned. This can be used to restore the original settings after some event.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

setBrushSize.ggobi getBrushSize.ggobi setBrushLocation.ggobi getBrushLocation.ggobi

Examples

  g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")

##  g$setBrushColor("red")

  g$setMode("Brush")

  g$setBrushGlyph("plus")

[Package Contents]