

ldahist(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=if(is.trellis()) trellis.par.get("bar.fill")$col else 2,
             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 omit-
          ted, 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'.

_V_a_l_u_e_:

     None.

_S_i_d_e _E_f_f_e_c_t_s_:

     Histogram and/or density plots are plotted on the cur-
     rent device.

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

     `plot.lda'.

