multhist               package:plotrix               R Documentation

_P_l_o_t _a _m_u_l_t_i_p_l_e _h_i_s_t_o_g_r_a_m, _a_s _a _b_a_r_p_l_o_t

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

     Given a list, plots a side-by-side barplot containing the
     histograms of the elements

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

      multhist(x,beside=TRUE,freq=NULL,probability=!freq, ...)

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

       x: a list of numeric vectors

  beside: plot histogram bars for groups side-by-side?

    freq: logical; if 'TRUE', the histogram graphic is a representation
          of frequencies, the 'counts' component of the result; if
          'FALSE', probability densities, component 'density', are
          plotted (so that the histogram has a total area of one).
          Defaults to 'TRUE' if 'probability' is not specified (does
          not consider equidistant breaks as in 'hist')

probability: an alias for '!freq', for S compatibility

     ...: additional arguments to 'hist' or 'barplot'

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

     plots a side-by-side barplot of the histograms

_N_o_t_e:

     The 'inside' argument to 'barplot' (which is not currently
     implemented in barplot anyway) is deleted from the argument list.
     The default value of NULL for 'freq' is for consistency with
     'hist' but is equivalent to TRUE.

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

     Ben Bolker

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

     'hist','barplot'

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

      l <- list(runif(10)*10,1:10,c(1,1,1,1,4,8))
      multhist(l)

