panel.bwplot             package:lattice             R Documentation

_D_e_f_a_u_l_t _P_a_n_e_l _F_u_n_c_t_i_o_n _f_o_r _b_w_p_l_o_t

_D_e_s_c_r_i_p_t_i_o_n:

     This is the default panel function for 'bwplot'.

_U_s_a_g_e:

     panel.bwplot(x, y, box.ratio = 1,
                  horizontal = TRUE,
                  pch, col, cex, 
                  font, fontfamily, fontface, 
                  fill, varwidth = FALSE,
                  ...,
                  levels.fos,
                  stats = boxplot.stats,
                  coef = 1.5,
                  do.out = TRUE)

_A_r_g_u_m_e_n_t_s:

    x, y: numeric vector or factor. Boxplots drawn for each unique
          value of 'y' ('x') if 'horizontal' is 'TRUE' ('FALSE')

box.ratio: ratio of box height to inter box space

horizontal: logical. If FALSE, the plot is 'transposed' in the sense
          that the behaviours of x and y are switched. x is now the
          'factor'.  Interpretation of other arguments change
          accordingly. See documentation of 'bwplot' for a fuller
          explanation. 

pch, col, cex, font, fontfamily, fontface: graphical parameters
          controlling the dot.  'pch="|"' is treated specially, by
          replacing the dot with a line (similar to 'boxplot') 

    fill: color to fill the boxplot

varwidth: logical. If TRUE, widths of boxplots are proportional to the
          number of points used in creating it.

   stats: a function, defaulting to 'boxplot.stats', that accepts a
          numeric vector and returns a list similar to the return value
          of 'boxplot.stats'.  The function must accept arguments
          'coef' and 'do.out' even if they do not use them (a '...'
          argument is good enough).  This function is used to determine
          the box and whisker plot.  

coef, do.out: passed to 'stats'

levels.fos: numeric values corresponding to positions of the factor or
          shingle variable.  For internal use. 

     ...: further arguments, ignored. 

_D_e_t_a_i_l_s:

     Creates Box and Whisker plot of 'x' for every level of 'y' (or the
     reverse if 'horizontal=FALSE').  By default, the actual boxplot
     statistics are calculated using 'boxplot.stats'. Note that most
     arguments controlling the display can be supplied to the
     high-level 'bwplot' call directly.  Unlike the traditional analog
     'boxplot', notches are not implemented.

     Although the graphical parameters for the dot representing the
     median can be controlled by optional arguments, many others can
     not.  These parameters are obtained from the relevant settings
     parameters ('"box.rectangle"' for the box, '"box.umbrella"' for
     the whiskers and '"plot.symbol"' for the outliers).

_A_u_t_h_o_r(_s):

     Deepayan Sarkar Deepayan.Sarkar@R-project.org

_S_e_e _A_l_s_o:

     'bwplot', 'boxplot.stats'

_E_x_a_m_p_l_e_s:

     bwplot(voice.part ~ height, data = singer,
            xlab = "Height (inches)",
            panel = function(...) {
                panel.grid(v = -1, h = 0)
                panel.bwplot(...)
            },
            par.settings = list(plot.symbol = list(pch = 4)))

