setDisplayWidth.ggobi         package:Rggobi         R Documentation

_C_o_n_t_r_o_l_s _t_h_e _s_i_z_e _o_f _a _g_g_o_b_i _d_i_s_p_l_a_y _w_i_n_d_o_w

_D_e_s_c_r_i_p_t_i_o_n:

     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'.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

      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'.

_D_e_t_a_i_l_s:

     This attempts to set the dimensions of the Gnome window.

_V_a_l_u_e:

     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)'.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.ggobi.org>

_S_e_e _A_l_s_o:

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

_E_x_a_m_p_l_e_s:

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

