RGBColVec              package:Heatplus              R Documentation

_A_l_t_e_r_n_a_t_i_v_e _c_o_l_o_r _s_c_h_e_m_e_s

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

     'RGBColVec' returns a vector of colors that is equally spaced from
     red through black to green, suitable for heatmaps.

     'RainbowPastel' returns a vector of colors like 'rainbow', but
     more pastelly.

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

     RGBColVec(nrgcols = 12)

     RainbowPastel(n, blanche = 200, ...)

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

nrgcols, n: desired number of colors

 blanche: the amount of whiteness added; value between 0 and 255

     ...: extra arguments to 'rainbow'

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

     A character vector of length 'nrgcols' or 'n' giving the RGB codes
     for the colors.

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

     'RGBColVec' is based on function 'rgcolors.func' in package 'sma'
     by Sandrine Dudoit and  Jane Fridlyand.

     'RGBColVec' as documented and 'RainbowPastel' by Alexander Ploner

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

     'heat.colors'

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

      # A Color Wheel
     pie(rep(1,12), col=RGBColVec(12))

     # A color wheel in the original rainbow
     pie(rep(1,6), col=rainbow(6))

     # Pastel
     pie(rep(1,6), col=RainbowPastel(6))

     # Less whiteness
     pie(rep(1,6), col=RainbowPastel(6, blanche=127))

     # More steps require less whiteness
     pie(rep(1,12), col=RainbowPastel(12, blanche=60))

     # Test your screen & eyes: any differences?
     pie(rep(1,12), col=RainbowPastel(12, blanche=80))

