ggobiDataset accesors {Rggobi}R Documentation

Shorthand for calling ggobi functions with a given dataset.

Description

Many functions in this package operate on a dataset within a ggobi instance. This function provides a convenient syntax for invoking such functions by keying off a reference to a dataset (i.e. a ggobiDataset object) which identifies both the dataset and the ggobi instance.

Usage

"$.ggobiDataset"(d, name)

Arguments

d the object of class ggobiDataset which identifies both the ggobi instance and specific dataset within it.
name the name of the function to be accessed with this dataset and ggobi instance.

Value

A closure instance that is a function which calls the function textit{name}.ggobi with the .data argument given by this data set object and .ggobi argument given by the .ggobi field of that ggobiDataset instance.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

$.ggobi

Examples

  g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
  d <- g[[1]]
  d$getColors()
  g[[1]]$getGlyphs()
  
  g[[1]]$setColors(rep(2,20), 1:20) # or use a color name.

[Package Rggobi version 1.1-2 Index]