getMode.ggobi {Rggobi}R Documentation

Get or sets the operation mode for a ggobi instance.

Description

A ggobi instance can be in one of several diffferent modes, each of which has different response to user inputs, different controls, etc. These methods allow one to determine the current mode and also programmatically set it.

Usage

getMode.ggobi(.gobi=getDefaultGGobi())
setMode.ggobi(name, .gobi=getDefaultGGobi())

Arguments

name the name of the mode, one of the values returned from getModeNames.ggobi, such as "Brush", "Identify", "Move Points".
.gobi the ggobi instance identifer; either an integer index or ggobi reference.

Details

This re-initializes the ggobi instance for this mode. No displays, plots, datasets, etc. are modified, just the state of the ggobi instance and th response to different user actions.

Value

The name of the current (in the case of setMode.ggobi) or the previous setting of the operation mode.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

getModeNames.ggobi

Examples

 g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
 g$setBrushLocation(50, 50); 
 g$setBrushSize(100, 50); 
  # Now, go into brushing mode.
 g$setMode("Brush"); 

  g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
  old <- g$getMode()
  g$setMode("Brush")
  which <- g$getSelectedIndices()
  g$setMode(old)

[Package Rggobi version 1.1-3 Index]