simpleKey              package:lattice              R Documentation

_F_u_n_c_t_i_o_n _t_o _g_e_n_e_r_a_t_e _a _s_i_m_p_l_e _k_e_y

_D_e_s_c_r_i_p_t_i_o_n:

     Simple interface to generate a list appropriate for 'draw.key'

_U_s_a_g_e:

     simpleKey(text, points = TRUE,
               rectangles = FALSE,
               lines = FALSE,
               col, cex, alpha, font,
               fontface, fontfamily, 
               lineheight, ...)

_A_r_g_u_m_e_n_t_s:

    text: character or expression vector, to be used as labels for
          levels of the grouping variable 

  points: logical 

rectangles: logical 

   lines: logical 

col, cex, alpha, font, fontface, fontfamily, lineheight: Used as
          top-level components of the list produced, to be used for the
          text labels. Defaults to the values in
          'trellis.par.get("add.text")' 

     ...: further arguments added to the list, eventually passed to
          'draw.key' 

_D_e_t_a_i_l_s:

     A lattice plot can include a legend (key) if an appropriate list
     is specified as the 'key' argument to a high level Lattice
     function such as 'xyplot'. This key can be very flexible, but that
     flexibility comes at the cost of this list being very complicated
     even in simple situations. The 'simpleKey' function is a shortcut,
     which assumes that the key is being drawn in conjunction with the
     'groups' argument, and that the default Trellis settings are being
     used. At most one each of points, rectangles and lines can be
     drawn.

     See also the 'auto.key' argument for high level plots.

_V_a_l_u_e:

     A list that would work as the 'key' argument to 'xyplot' etc.

_A_u_t_h_o_r(_s):

     Deepayan Sarkar Deepayan.Sarkar@R-project.org

_S_e_e _A_l_s_o:

     'draw.key', 'xyplot', 'Lattice'

