getMode.ggobi             package:Rggobi             R Documentation

_G_e_t _o_r _s_e_t_s _t_h_e _o_p_e_r_a_t_i_o_n _m_o_d_e _f_o_r _a _g_g_o_b_i _i_n_s_t_a_n_c_e.

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

     A ggobi instance can be in one of several diffferent modes, each
     of which has different response to user inputs, different
     controls, etc. These methods allow one to determine the current
     mode and also programmatically set it.

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

     getMode.ggobi(.gobi=getDefaultGGobi())
     setMode.ggobi(name, .gobi=getDefaultGGobi())

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

    name: the name of the mode, one of the values returned from
          'getModeNames.ggobi', such as "Brush", "Identify", "Move
          Points".

   .gobi: the ggobi instance identifer; either an integer index or
          'ggobi' reference.

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

     This re-initializes the ggobi instance for this mode. No displays,
     plots, datasets,  etc. are  modified, just the state of the ggobi
     instance and th response to different user actions.

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

     The name of the current (in the case of 'setMode.ggobi') or the
     previous setting of the operation mode.

_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:

     'getModeNames.ggobi'

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

      g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
      g$setBrushLocation(50, 50); 
      g$setBrushSize(100, 50); 
       # Now, go into brushing mode.
      g$setMode("Brush"); 

       g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")
       old <- g$getMode()
       g$setMode("Brush")
       which <- g$getSelectedIndices()
       g$setMode(old)

