simpleTheme             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 _t_h_e_m_e

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

     Simple interface to generate a list appropriate as a theme,
     typically used as the 'par.settings' argument in a high level call

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

     simpleTheme(col, alpha, 
                 cex, pch, lty, lwd, font, fill, border,
                 col.points, col.line, 
                 alpha.points, alpha.line)

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

col, col.points, col.line: A color specification.  'col' is used for
          components 'plot.symbol', 'plot.line', 'plot.polygon',
          'superpose.symbol', 'superpose.line', and
          'superpose.polygon'.  'col.points' overrides 'col', and is
          used only for 'plot.symbol' and 'superpose.symbol'. 
          Similarly, 'col.lines' overrides 'col' for 'plot.line' and
          'superpose.line'.  The arguments can be vectors, but only the
          first component is used for scalar targets (i.e., the ones
          without '"superpose"' in their name). 

alpha, alpha.points, alpha.line: A numeric alpha transparency
          specification.  The same rules as 'col', etc., apply. 

cex, pch, font: Parameters for points.  Applicable for components
          'plot.symbol' (for which only the first component is used)
          and 'superpose.symbol' (for which the arguments can be
          vectors). 

lty, lwd: Parameters for lines.  Applicable for components 'plot.line'
          (for which only the first component is used) and
          'superpose.line' (for which the arguments can be vectors). 

    fill: fill color, applicable for components 'plot.symbol',
          'plot.polygon', 'superpose.symbol', and 'superpose.polygon'.  

  border: border color, applicable for components 'plot.polygon' and
          'superpose.polygon'.  

_D_e_t_a_i_l_s:

     The appearance of a lattice display depends partly on the "theme"
     active when the display is plotted (see 'trellis.device' for
     details).  This theme is used to obtain defaults for various
     graphical parameters, and in particular, the 'auto.key' argument
     works on the premise that the same source is used for both the
     actual graphical encoding and the legend.  The easiest way to
     specify custom settings for a particular display is to use the
     'par.settings' argument, which is usually tedious to construct as
     it is a nested list.  The 'simpleTheme' function can be used in
     such situations as a wrapper that generates a suitable list given
     parameters in simple 'name=value' form, with the nesting made
     implicit.  This is less flexible, but straightforward and
     sufficient in most situations.

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

     A list that would work as the 'theme' argument to 'trellis.device'
     and 'trellis.par.set', or as the 'par.settings' argument to any
     high level lattice function such as 'xyplot'.

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

     Deepayan Sarkar Deepayan.Sarkar@R-project.org, based on a
     suggestion from John Maindonald.

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

     'trellis.device', 'xyplot', 'Lattice'

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

     str(simpleTheme(pch = 16))

     dotplot(variety ~ yield | site, data = barley, groups = year,
             auto.key = list(space = "right"),
             par.settings = simpleTheme(pch = 16),
             xlab = "Barley Yield (bushels/acre) ",
             aspect=0.5, layout = c(1,6))

