makeLegend           package:GenomeGraphs           R Documentation

_C_r_e_a_t_e_s _a_n _o_b_j_e_c_t _o_f _c_l_a_s_s _L_e_g_e_n_d

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

     Creates an object of class Legend which can be used to plot a
     legend

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

     makeLegend(text, fill, cex)

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

    text: Vector of characters representing the legend

    fill: Vector of colors to fill the legend boxes

     cex: Font size of the legend

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

     Object of class Legend

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

     Jim Bullard and Steffen Durinck

_R_e_f_e_r_e_n_c_e_s:

     ~put references to the literature/web site here ~

_S_e_e _A_l_s_o:

     See Also as 'gdPlot'

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

     ##---- Should be DIRECTLY executable !! ----
     ##-- ==>  Define data, use random,
     ##--    or do  help(data=index)  for the standard data sets.

     ## The function is currently defined as
     function (text, fill, cex) 
     {
         dp <- getClass("Legend")@prototype@dp
         if (!missing(cex)) 
             setPar(dp, "cex", cex)
         if (!missing(fill)) 
             setPar(dp, "color", fill)
         new("Legend", legend = text, dp = dp)
       }

