xmap.col             package:xmapbridge             R Documentation

_G_e_n_e_r_a_t_e _a _c_o_l_o_u_r _i_n_t_e_g_e_r _f_o_r _t_h_e _x_m_a_p_B_r_i_d_g_e

_D_e_s_c_r_i_p_t_i_o_n:

     Convert an R colour into the form 0xAARRGGBB as used by the
     xmapBridge

_U_s_a_g_e:

        xmap.col(col,alpha)

_A_r_g_u_m_e_n_t_s:

     col: The R colour to convert 

   alpha: Change the colour's alpha value to the one specified 

_D_e_t_a_i_l_s:

     Takes one or more hex strings, possibly with an alpha value, as
     used by R and converts them to an integer of the form 0xAARRGGBB
     to be used by the xmapBridge. If alpha is specified, then change
     the colours' alpha values to this, otherwise leave them as they
     were.

_A_u_t_h_o_r(_s):

     Crispin J Miller

_S_e_e _A_l_s_o:

     'xmap.plot'
      'xmap.plot.new'

_E_x_a_m_p_l_e_s:

       require( RColorBrewer )
       transparent.greens <- xmap.col( brewer.pal( 5, "Greens" ), alpha=0x22 )

