close.ggobiDisplay {Rggobi}R Documentation

Close and discard a ggobi display/plot window.

Description

These functions allow one to discard a display window belonging to a ggobi instance.

Usage

close.ggobiDisplay(con, ...)
close.ggobiDisplayDescription(con,...)

Arguments

con the ggobiDisplay or ggobiDisplayDescription object that identifies the actual display window to be closed.
... ignored but present to be consistent with the definition of the generic function.

Details

Note that these are methods rather than functions that can take integer values to identify the display and ggobi.

Value

A logical value indicating whether the close operation was successful (TRUE) or not (FALSE).

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

scatmat.ggobi scatterplot.ggobi parcoords.ggobi

Examples

  g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
  d <- g$scatmat(1:3)
  close(d)

 
  g$parcoords(1:5)
     # close based on a description, specifically
     # its type and the particular variables
     # in the plot.
  for(i in g$getDisplays(TRUE)) {
   if(names(i$Type) == "Parallel Coordinates") {
     if(!is.na(match("tars1", names(unlist(d$Plots)))))
      close(i)
   }
  }

[Package Rggobi version 1.1-2 Index]