ldahist                 package:MASS                 R Documentation

_H_i_s_t_o_g_r_a_m_s _o_r _D_e_n_s_i_t_y _P_l_o_t_s _o_f _M_u_l_t_i_p_l_e _G_r_o_u_p_s

_D_e_s_c_r_i_p_t_i_o_n:

     Plot histograms or density plots of data on a single Fisher linear
     discriminant.

_U_s_a_g_e:

     ldahist(data, g, nbins = 25, h, x0 = - h/1000, breaks,
             xlim = range(breaks), ymax = 0, width,
             type = c("histogram", "density", "both"),
             sep = (type != "density"),
             col = 5, xlab = deparse(substitute(data)), bty = "n", ...)

_A_r_g_u_m_e_n_t_s:

    data: vector of data. Missing values ('NA's) are allowed and
          omitted. 

       g: factor or vector giving groups, of the same length as 'data'. 

   nbins: Suggested number of bins to cover the whole range of the
          data. 

       h: The bin width (takes precedence over 'nbins'). 

      x0: Shift for the bins - the breaks are at 'x0 + h * (..., -1, 0,
          1, ...)' 

  breaks: The set of breakpoints to be used. (Usually omitted, takes
          precedence over 'h' and 'nbins'). 

    xlim: The limits for the x-axis. 

    ymax: The upper limit for the y-axis. 

   width: Bandwidth for density estimates. If missing, the
          Sheather-Jones selector is used for each group separately. 

    type: Type of plot. 

     sep: Whether there is a separate plot for each group, or one
          combined plot. 

     col: The colour number for the bar fill. 

    xlab: label for the plot x-axis. By default, this will be the name
          of 'data'. 

     bty: The box type for the plot - defaults to none. 

     ...: additional arguments to 'polygon'. 

_S_i_d_e _E_f_f_e_c_t_s:

     Histogram and/or density plots are plotted on the current device.

_R_e_f_e_r_e_n_c_e_s:

     Venables, W. N. and Ripley, B. D. (2002) _Modern Applied
     Statistics with S._ Fourth edition.  Springer.

_S_e_e _A_l_s_o:

     'plot.lda'.

