getNumGGobis             package:Rggobi             R Documentation

_T_h_e _n_u_m_b_e_r _o_f _g_g_o_b_i _i_n_s_t_a_n_c_e_s _w_i_t_h_i_n _t_h_i_s _s_e_s_s_i_o_n

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

     One or more ggobi instances can be created within an R session so
     that one can simultaneously look at different datasets  or have
     different views of the same dataset. This function returns the
     number of ggobis in existence. This can be used in conjunction
     with 'setDefaultGGobi' to soecify which ggobi instance should
     receive  commands by default.

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

      getNumGGobis()

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

     The different ggobi instances are maintained as C  level
     structures. This function accesses a variable that stores how many
     are in existence when the function is invoked.

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

     An integer vector of length 1

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

     'setDefaultGGobi', 'getDefaultGGobi', 'ggobi'

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

       # Get the total number of ggobi instances
      getNumGGobis()

      # Loop over all the ggobi instances and print
      # their basic characteristics
      for(i in 1:getNumGGobis())
       print(getDescription.ggobi(.gobi = i))

      # Make the last ggobi instance created
      # the default one.
      setDefaultGGobi(getNumGGobis())

