colorramp             package:arrayMagic             R Documentation

_c_o_l_o_r_r_a_m_p

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

     Returns a function which allows to create color ramps.

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

 palette: vector, defining a color palette

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

     A function with a single argument n to specify the length of the
     desired color ramp.

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

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

        RdBu11 <- c("#67001F", "#B2182B", "#D6604D", "#F4A582", "#FDDBC7",
                    "#F7F7F7", "#D1E5F0", "#92C5DE", "#4393C3", "#2166AC", "#053061")
        finerGraded <- colorramp(RdBu11)(33)
        barplot(rep(1,33), col=finerGraded)
             

