createDisplay.ggobi {Rggobi}R Documentation

Generic function to create a GGobi display

Description

This is a generic mechanism to create a top-level GGobi display from R. It identifies the target display type and the corresponding Gtk class and invokes the method to create and populate the particular display with the given variables in the given dataset.

Usage

createDisplay.ggobi(type, vars, .data = 1, .gobi = getDefaultGGobi())

Arguments

type the name of the desired display type, which can be given either by the Gtk class name or by its more "human readable" form returned as the names of the elements from the function getDisplayTypes.ggobi
vars the identifiers for the variables to be displayed in the plot(s). These can be either variable names or indices. They are resolved relative to the dataset .data.
.data the dataset identifier in which to resolve the variables vars.
.gobi the ggobi instance in which to resolve the dataset if that is given as a name or index rather than a dataset reference.

Details

Value

An object of class ggobiDisplay.

id the integer identifier for the display
ref a pointer to the C-level displayd object.
ggobi the GGobi instance in which the display was created. This is an object of class ggobi. See ggobi-class.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org http://www.omegahat.org/RGtk

See Also

scatterplot.ggobi scatmat.ggobi parcoords.ggobi

Examples


 data(mtcars)
 g = ggobi(mtcars)

 g$createDisplay("GtkGGobiScatterplotDisplay", c("cyl", "mpg"))
 


[Package Rggobi version 1.1-3 Index]