| ggobi accessors {Rggobi} | R Documentation |
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.
"$.ggobi"(x, name)
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. |
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.
Duncan Temple Lang
$.ggobi
All functions that take a .gobi argument
and are named *.ggobi.
g <- ggobi(system.file("data", "flea.xml", package="Rggobi"))
g$getDisplays()
g$getDisplayCount()
g$getDatasetReference(1) # g[[1]]