colors               package:grDevices               R Documentation

_C_o_l_o_r _N_a_m_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Returns the built-in color names which R knows about.

_U_s_a_g_e:

     colors()
     colours()

_D_e_t_a_i_l_s:

     These color names can be used with a 'col=' specification in
     graphics functions.

     An even wider variety of colors can be created with primitives
     'rgb' and 'hsv' or the derived 'rainbow', 'heat.colors', etc.

_V_a_l_u_e:

     A character vector containing all the built-in color names.

_S_e_e _A_l_s_o:

     'palette' for setting the "palette" of colors for
     'par(col='_<num>_')'; 'rgb', 'hsv', 'hcl', 'gray'; 'rainbow' for a
     nice example; and 'heat.colors', 'topo.colors' for images.

     'col2rgb' for translating to RGB numbers and extended examples.

_E_x_a_m_p_l_e_s:

     cl <- colors()
     length(cl); cl[1:20]

