rlegend                package:Hmisc                R Documentation

_S_p_e_c_i_a_l _V_e_r_s_i_o_n _o_f _l_e_g_e_n_d _f_o_r _R

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

     'rlegend' is a version of 'legend' for R that implements
     'plot=FALSE', adds 'grid=TRUE', and defaults 'lty, lwd, pch' to
     'NULL' and checks for 'length>0' rather than 'missing()', so it's
     easier to deal with non-applicable parameters.

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

     rlegend(x, y, legend, fill, col = "black", lty = NULL, lwd = NULL, pch = NULL, angle = NULL, density = NULL, bty = "o", bg = par("bg"), pt.bg = NA, cex = 1, xjust = 0, yjust = 1, x.intersp = 1, y.intersp = 1, adj = 0, text.width = NULL, merge = do.lines && has.pch, trace = FALSE, ncol = 1, horiz = FALSE, plot = TRUE, grid = FALSE, ...)

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

       x: 

       y: 

  legend: 

    fill: 

     col: 

     lty: 

     lwd: 

     pch: 

   angle: 

 density: 

     bty: 

      bg: 

   pt.bg: 

     cex: 

   xjust: 

   yjust: 

x.intersp: 

y.intersp: 

     adj: 

text.width: 

   merge: 

   trace: 

    ncol: 

   horiz: see 'legend'

    plot: set to 'FALSE' to suppress drawing the legend.  This is used
          the compute the size needed for when the legend is drawn with
          a later call to 'rlegend'.

    grid: set to 'TRUE' if the 'grid' package is in effect

     ...: see 'legend'

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

     a list with elements 'rect' and 'text'.  'rect' has elements 'w,
     h, left, top' with size/position information.

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

     Frank Harrell and R-Core

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

     'legend'

