home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-M / help / base / hist < prev    next >
Encoding:
Text File  |  1997-04-23  |  1.3 KB  |  43 lines

  1.     
  2.     _H_i_s_t_o_g_r_a_m_s
  3.     
  4.          hist(x, breaks, freq=TRUE, col=NULL, border=par("fg"), ...)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.                x : a vector of values for which the histogram is
  9.                    desired.
  10.     
  11.           breaks : either a single number giving the approximate
  12.                    number of cells for the histogram or a vector
  13.                    giving the breakpoints between histogram
  14.                    cells.
  15.     
  16.             freq : a logical vector which indicates whether the
  17.                    histogram is to present a representation of
  18.                    frequencies (the default) or relative fre-
  19.                    quencies.
  20.     
  21.              col : a colour to be used to fill draw the bars.
  22.                    The default of NULL yields unfilled bars.
  23.     
  24.           border : the color of the border around the bars.
  25.     
  26.              ... : graphical parameters can also be specified as
  27.                    arguments.
  28.     
  29.     _D_e_s_c_r_i_p_t_i_o_n:
  30.     
  31.          hist computes and plots a histogram of the given data
  32.          values.  The histogram cells are intervals of the form
  33.          [a,b), i.e. they include their left-hand endpoint, but
  34.          not their right one.
  35.     
  36.     _E_x_a_m_p_l_e_s:
  37.     
  38.          data(islands)
  39.          hist(islands)
  40.          hist(islands, col="gray")
  41.          hist(islands, col="gray", border="gray")
  42.     
  43.