setData.ggobi {Rggobi}R Documentation

Load or retrieve a ggobi dataset.

Description

getData.ggobi retrieves the contents of a ggobi dataset as an S matrix and setData.ggobi adds or replaces a dataset either from a file or from an R matrix or data frame.

Usage

setData.ggobi(data, ..., .gobi=getDefaultGGobi())
getData.ggobi(.data = 1, .gobi=getDefaultGGobi())

Arguments

data the name of a file or URL from which to load data or an S data frame or matrix containing the data.
.gobi the ggobi instance into which or from which the data should be added or retrieved.
.data an identifier for the dataset of interest with the GGobi instance. This is either a name, an integer index or a reference to a GGobi dataset of class ggobiDataset
... passed to setDataFile.ggobi

Value

getData.ggobi returns a matrix containing the values in the specified ggobi dataset, using its row labels as row names and variable names as column names.
setData.ggobi returns an object of class ggobiDataset that provides a convenient reference to the internal ggobi dataset.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

setDataFrame.ggobi setDataFile.ggobi

Examples

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

  getData.ggobi(g[1])
  g[[1]][,1]

[Package Contents]