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', 'rgb'.

_E_x_a_m_p_l_e_s:

     gray(0:8 / 8)

