resolveColors.ggobi          package:Rggobi          R Documentation

_M_a_p _n_a_m_e_s _t_o _c_o_l_o_r _v_a_l_u_e_s _i_n _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:

     This currently does not work but will when color schemes are
     enabled in GGobi.

     Colors in ggobi are represented by entries in a color table or
     matrix as Red, Green and Blue values. To set a color, one can
     identify the entry in that table  either by number/index or by
     name. This function maps color names to the corresponding index so
     that these values can be passed to the low-leve C routines.  This
     function is typically called internally.

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

     resolveColors.ggobi(colNames, scheme = NULL, .gobi=getDefaultGGobi())

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

colNames: names of colors to be resolved in the specified color scheme
          of the ggobi instance.

  scheme: the name of the particular color scheme of interest in which
          to resolve the color names. This name is used to lookup the
          color scheme in the list of color schemes associated with the
          GGobi instance or session options.

   .gobi: the ggobi instance whose color schemes are to be used to
          resolve the 'scheme'. If this is 'NULL', the color schemes
          from the GGobi session options are used. 

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

     An integer vector specifying the indices of the  entries in the
     color scheme corresponding to the specified names.

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

     'getColors.ggobi' 'setColors.ggobi' 'getColorSchemes'

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

       g <- ggobi(system.file("data", "flea.xml", package="Rggobi"))
     ## Not run: 
       g$resolveColors("red", "green")
     ## End(Not run)

