getcol                 package:made4                 R Documentation

_S_p_e_c_i_a_l_i_s_e_d _c_o_l_o_u_r _p_a_l_e_t_t_e _w_i_t_h _s_e_t _o_f _2_1 _m_a_x_i_m_a_l_l_y _c_o_n_t_r_a_s_t_i_n_g _c_o_l_o_u_r_s

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

     Special colour palette developed to maximise the contrast between
     colours. Colours were selected for visualising groups of points on
     xy or xyz plots  on a white background. Because of this, there are
     few pastel colours are in this palette.  'getcol' contains 2
     palettes of 9 and 21 colours.

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

     getcol(nc = c(1:3), palette = "colours2", test = FALSE)

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

      nc: Numeric. Integer or vector in range 1 to 21. This selects
          colours from palette

 palette: A character to select either palette "colours1" or
          "colours2". 'colours1' contains 9 colours, 'colours2'
          contains 21 colours

    test: A logical, if TRUE a plot will be drawn to display the
          palettes colours1, colours2 and any selected colours. 

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

     Colours1 contains the 9 colours,"red","blue"
     ,"green","cyan","magenta","yellow", "grey","black","brown".
     Colours2 contains 21 colours. These were selected so as to
     maximise the contrast between groups.

     For other colour palettes in R, see 'colors', 'palette',
     'rainbow',  'heat.colors', 'terrain.colors', 'topo.colors' or
     'cm.colors'.

     Also see the library 'RColorBrewer'

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

     A vector containing a list of colours.

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

     Aedin Culhane

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

     See also 'colors', 'palette', 'rainbow',  'heat.colors',
     'terrain.colors', 'topo.colors' or 'cm.colors', 'RColorBrewer'

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

     getcol(3)
     getcol(c(1:7))
     getcol(10, test=TRUE)
     getcol(c(1:5, 7, 15, 16), palette="colours2",test=TRUE)

