gray.colors            package:grDevices            R Documentation

_G_r_a_y _C_o_l_o_r _P_a_l_e_t_t_e

_D_e_s_c_r_i_p_t_i_o_n:

     Create a vector of 'n' gamma-corrected gray colors.

_U_s_a_g_e:

     gray.colors(n, start = 0.3, end = 0.9, gamma = 2.2)
     grey.colors(n, start = 0.3, end = 0.9, gamma = 2.2)

_A_r_g_u_m_e_n_t_s:

       n: the number of gray colors (>= 1) to be in the palette.

   start: starting gray level in the palette (should be between '0' and
          '1' where zero indicates '"black"' and one indicates
          '"white"').

     end: ending gray level in the palette.

   gamma: the gamma correction.

_D_e_t_a_i_l_s:

     The function 'gray.colors' chooses a series of 'n' gamma-corrected
     gray levels between 'start' and 'end': seq(start^gamma, end^gamma,
     length = n)^(1/gamma). The returned palette contains the
     corresponding gray colors. This palette is used in
     'barplot.default'.

     'grey.colors' is an alias for 'gray.colors'.

_V_a_l_u_e:

     A vector of 'n' gray colors.

_S_e_e _A_l_s_o:

     'gray', 'rainbow', 'palette'.

_E_x_a_m_p_l_e_s:

     require(graphics)

     pie(rep(1,12), col = gray.colors(12))
     barplot(1:12, col = gray.colors(12))

