setDisplayWidth.ggobi {Rggobi}R Documentation

Controls the size of a ggobi display window

Description

On occassion, it is convenient to be able to programmatically change the size of a window housing a ggobi display. This function attempts to allow one to do this.

See the RGtk package and gtkWidgetSetUsize.

Usage

setDisplayWidth.ggobi(sz, display=1, .gobi=getDefaultGGobi())
getDisplayWidth.ggobi(display=1, .gobi=getDefaultGGobi())

Arguments

sz a vector giving the width and height to which the dimensions of the display window should be set.
display an identifier for the particular display within the ggobi instance. This can be either an object of class ggobiDisplay or an integer.
.gobi the ggobi instance in which to resolve the display. This can be an object of class ggobi or an integer identifying it by position in the list returned by getGGobi.

Details

This attempts to set the dimensions of the Gnome window.

Value

The return value of these two functions is an integer vector containing the dimension (width and height) of the window before this function was called. In the case of setDisplayWidth.ggobi, this value is the old setting.
At present, these return c(0,0).

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

The plot creation functions scatmat.ggobi, scatterplot.ggobi parcoords.ggobi.

Examples

    g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
    g$setDisplayWidth(c(200, 300), 1)

[Package Rggobi version 1.1-2 Index]