GetColor             package:geneplotter             R Documentation

_A _f_u_n_c_t_i_o_n _t_o _g_e_t _t_h_e _R_e_d-_B_l_u_e _c_o_l_o_r _s_c_h_e_m_e _u_s_e_d _b_y _d_C_h_i_p

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

     A simple, vectorized function that computes a Red/Blue color for
     plotting microarray expression data.

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

     GetColor(value, GreenRed=FALSE, DisplayRange=3)
     dChip.colors(n)
     greenred.colors(n)

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

   value: The vector of expression values. 

GreenRed: If 'TRUE' the Green-Red colors are produced, otherwise
          Red-Blue are procduced. 

DisplayRange: A parameter controlling the range of 'value''s that will
          be plotted. 

       n: An integer saying how many colors to be in the palette.

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

     'GetColor' is a simple mapping into RGB land provided by Cheng Li.
     'dChip.colors' provides functionality similar to that of
     'topo.colors' for the red-blue colors used for genome plots.
     'greenred.colors' does the same for the green-black-red gradient.

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

     A vector of RGB colors suitable for plotting in R.

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

     R. Gentleman, based on an original by C. Li.

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

       set.seed(10)
       x <- rnorm(10)
       GetColor(x)
       dChip.colors(10)

