map_colour_rgb            package:ggplot            R Documentation

_A_e_s_t_h_e_t_i_c _m_a_p_p_i_n_g: _r_g_b _c_o_m_p_o_n_e_n_t_s _o_f _c_o_l_o_u_r

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

     Map variables to red, green or blue components.

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

     map_colour_rgb(r=0, g=0, b=0, a=1, r.to = c(0,1), g.to=c(0,1), b.to=c(0,1), a.to=c(0,1), r.from = range(r, na.rm=TRUE), g.from = range(g, na.rm=TRUE), b.from = range(b, na.rm=TRUE), a.from = range(a, na.rm=TRUE))

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

       r: red

       g: green

       b: blue

       a: alpha

    r.to: red to

    g.to: green to

    b.to: blue to

    a.to: alpha to

  r.from: 

  g.from: 

  b.from: 

  a.from: 

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

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

     Hadley Wickham <h.wickham@gmail.com>

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

