ggobi accessors {Rggobi}R Documentation

Convenience accessor for calling ggobi methods

Description

Most of the functions in this ggobi package act on a ggobi instance. The $ operator allows one to treat these functions as method calls on the instance, in the form of g$method. This allows one to explicitly indicate which ggobi instance is being used and also to avoid typing the .ggobi suffix for the different functions.

Usage

"$.ggobi"(x, name)

Arguments

x the ggobi instance in the form of an object of class ggobi.
name the name of the function to be invoked, without the .ggobi suffix.

Value

This creates a closure which ``remembers'' the ggobi instance g and returns a function which will call the function named textit{name}.ggobi with that ggobi object as the named argument .gobi. This is then called directly and its return value rarely stored for future computations.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

$.ggobi All functions that take a .gobi argument and are named *.ggobi.

Examples

  g <- ggobi(system.file("data", "flea.xml", package="Rggobi"))
  g$getDisplays()
  g$getDisplayCount()
  g$getDatasetReference(1) # g[[1]]

[Package Rggobi version 1.1-2 Index]