setActiveColorScheme         package:Rggobi         R Documentation

_S_p_e_c_i_f_y _t_h_e _a_c_t_i_v_e _c_o_l_o_r _s_c_h_e_m_e _i_n _a _G_G_o_b_i _i_n_s_t_a_n_c_e _o_r _t_h_e
_s_e_s_s_i_o_n _o_p_t_i_o_n_s.

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

     This makes a particular color scheme active within a GGobi
     instance or sets the default active color scheme in the session
     options for use in new GGobi instances created after this call.

     'getActiveColorScheme' returns a complete description of the
     currently active color scheme in a GGobi instance or the session
     options.

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

     setActiveColorScheme(id, .gobi=NULL)
     getActiveColorScheme(.gobi = NULL)

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

      id: an identifier for the desired color scheme that is to be made
          active. This is usually the name of the scheme. Alternatively
          it can be an integer value that specifies the scheme by index
          in the list of color schemes.

   .gobi: the GGobi instance to which this scheme is to be active, or
          if 'NULL', sets it in the GGobi session options. In this
          case, the subsequently created GGobi instances will use this
          value as their initial color scheme.

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

     The name of the previously active color scheme. This can be used
     to restore the previous setting.

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

     'addColorScheme' 'getColorSchemes'

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

       g <- ggobi(system.file("data", "flea.xml", package="Rggobi"))
       schemes <- getColorSchemes(.gobi = g)
       setActiveColorScheme(names(schemes)[1], g)

