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)
             

