panel.densityplot          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 _d_e_n_s_i_t_y_p_l_o_t

_D_e_s_c_r_i_p_t_i_o_n:

     This is the default panel function for 'densityplot'.

_U_s_a_g_e:

     panel.densityplot(x, darg, plot.points = "jitter", ref = FALSE,
                       groups = NULL, 
                       jitter.amount, type, ...)

_A_r_g_u_m_e_n_t_s:

       x: data points for which density is to be estimated 

    darg: list of arguments to be passed to the 'density' function.
          Typically, this should be a list with zero or more of the
          following components : 'bw', 'adjust', 'kernel', 'window',
          'width', 'give.Rkern', 'n', 'from', 'to', 'cut', 'na.rm' (see
          'density' for details) 

plot.points: logical specifying whether or not the data points should
          be plotted along with the estimated density.  Alternatively,
          a character string specifying how the points should be
          plotted.  Meaningful values are '"rug"', in which case
          'panel.rug' is used to plot a 'rug', and '"jitter"', in which
          case the points are jittered vertically to better distinguish
          overlapping points. 

     ref: logical, whether to draw x-axis 

  groups: an optional grouping variable.  If present, 'panel.superpose'
          will be used instead to display each subgroup 

jitter.amount: when 'plot.points="jitter"', the value to use as the
          'amount' argument to 'jitter'. 

    type: 'type' argument used to plot points, if requested. This is
          not expected to be useful, it is available mostly to protect
          a 'type' argument, if specified, from affecting the density
          curve. 

     ...: extra graphical parameters 

_A_u_t_h_o_r(_s):

     Deepayan Sarkar Deepayan.Sarkar@R-project.org

_S_e_e _A_l_s_o:

     'densityplot', 'jitter'

