close.ggobi {Rggobi}R Documentation

Terminates and discards a ggobi instance

Description

This allows the caller to close a ggobi instance and discard the resources it uses. The function closes the display windows and variable panel window associated with this ggobi instance. It also resets the default ggobi instance to be the last one created.

close is a generic function in R that applies to objects of class ggobi, ggobiDisplay and ggobiDisplayDescription.

Usage

close.ggobi(con=getDefaultGGobi(),...)

Arguments

con the object of class ggobi identifying the specific ggobi instance to be closed. This is named con to be consistent with the generic function.
... ignored and here only for compatability with the associated generic function.

Details

If the .gobi argument is specified, the default ggobi (i.e. that returned via getDefaultGGobi is only modified if that object is the default ggobi instance.

Value

Returns a logical value indicating whether this operation was successful or not.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

ggobi getGGobi getDefaultGGobi close.ggobiDisplay close.ggobiDisplayDescription

Examples

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

  #  Open two ggobi instances.

 g1 <- ggobi(args=c("-verbose", "-xml", system.file("data", "flea.xml", package="Rggobi"), args="-noinit"))
 g2 <- ggobi(args=c("-verbose", "-xml", system.file("data", "buckyball.xml", package="Rggobi"), args="-noinit"))

  # Close g1
 close.ggobi(g1)

[Package Contents]