ggobi {Rggobi}R Documentation

Creates a new ggobi instance

Description

Create a new instance of a GGobi control panel with or without new data. This new GGobi will operate indepdently of the others in the R session and will not share linked plots.

Usage

  ggobi(data = NULL, args=character(0), mode=character(0), name = deparse(sys.call()[[2]]), ...)

Arguments

data the name of a file containing the data to be loaded or a data frame or matrix containing the values
args a character vector of arguments that are given to the ggobi engine as if they were specified as command line arguments to the stand-alone ggobi. This includes flags such as texttt{-xml}, texttt{-a}, etc. to specify the mode of the data being read from a file.
mode the name of the data format GGobi should expect to read the data from, if reading from a file.
name the name to use in GGobi for the dataset, if one is specified
... passed to setData.ggobi

Details

This creates a new ggobi object which manages one or more related datasets and a linked collection of views of the values in those datasets.

Value

An object that can be used in subsequent calls to identify this particular ggobi instance. This is a list with two elements:

id an integer identifying which ggobi instance this was within the R session.
ref the C-level address of the internal ggobid structure. Do no use!

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

getDefaultGGobi, getNumGGobis

Examples

 ggobi(system.file("data", "flea.dat", package="Rggobi"), c("-noinit", "-ascii"))
 ggobi(system.file("data", "flea.xml", package="Rggobi"), c("-noinit", "-xml"))

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

 data(mtcars)
 ggobi(mtcars)

[Package Rggobi version 1.1-2 Index]