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'

