colorSchemeTree         package:RGtkViewers         R Documentation

_C_r_e_a_t_e _t_r_e_e _f_o_r _c_o_l_o_r _s_c_h_e_m_e

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

     These functions create a 'GtkTree' for the color scheme or list of
     color schemes. 'colorSchemeTree' works on a single 'ColorScheme'.
     'colorSchemesTree' arranges the color schemes into groups and
     shows these groups as sub-trees. By default, the groups it uses
     are the unique class names of the color schemes.
     'colorSchemesBySize' use 'colorSchemesTree' but groups the schemes
     by the number of colors they support.  This makes it easier to
     select a scheme with a particular number of colors.

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

     colorSchemeTree(scheme, tree = gtkTree())
     colorSchemesTree(schemes, top = gtkTree(), schemeCallback = NULL, group
     = class, groupId = function(x,y) class(x)[1] == y)
     colorSchemesBySize(schemes, top = gtkTree(), schemeCallback = NULL)

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

  scheme: the 'ColorScheme' to display.

    tree: a 'GtkTree' object to which to append the items.

 schemes: the list of color scheme objects.

     top: the tree into which to append the new schemes items.

schemeCallback: the function that is registered with the 'GtkTreeItem'
          representing a color scheme. This is invoked with two
          arguments: a list of length 2 and a 'GtkWidget' giving the
          tree item. The list contains the 'ColorScheme' object and its
          name.

   group: a function that identifies the different `types' of schemes.
          This is used to group the schemes by class or by number or
          any other criterion. This is a function that takes a single
          argument which is the scheme.

 groupId: a function used to identify the schemes within a particlar
          group. This is a function of two arguments, the first being
          the scheme and the second being the value by which they are
          being grouped.

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

     An object of class 'GtkTree'.

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

     Duncan Temple Lang <duncan@research.bell-labs.com>

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

     <URL: http://www.omegahat.org/RGtk>, <URL: http://www.ggobi.org>
     <URL: http://www.ggobi.org/data/colorschemes.xml>   <URL:
     http://www.gtk.org>

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

     'colorSchemesView'

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

