colorramp               package:prada               R Documentation

_I_n_t_e_r_p_o_l_a_t_e _b_e_t_w_e_e_n _c_o_l_o_r_s

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

     Interpolate between colors

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

     colorramp(col)

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

     col: A vector of colors, as in 'col2rgb'.

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

     The function is adapated from the function 'colorRamp' in the
     package 'geneplotter'.

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

     A function that takes an integer and produces a color map which
     interpolates between the colors in 'col'.

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

     Thomas Lumley

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

       cr <- colorramp(c("green", "red"))
       cr(5)

