gray                package:grDevices                R Documentation

_G_r_a_y _L_e_v_e_l _S_p_e_c_i_f_i_c_a_t_i_o_n

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

     Create a vector of colors from a vector of gray levels.

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

     gray(level)
     grey(level)

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

   level: a vector of desired gray levels between '0' and '1'; zero
          indicates '"black"' and one indicates '"white"'.

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

     The values returned by 'gray' can be used with a 'col='
     specification in graphics functions or in 'par'.

     'grey' is an alias for 'gray'.

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

     A vector of colors of the same length as 'level'.

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

     'rainbow', 'hsv', 'hcl', 'rgb'.

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

     gray(0:8 / 8)

