[R] histogramm?

Gavin Simpson gavin.simpson at ucl.ac.uk
Wed Jun 1 13:02:00 CEST 2005


Martin Klaffenboeck wrote:
> Hello there!
> 
> When I do freq=F on hist, I get on the left a small number, what exactly
> does that mean?
> 
> Thanks,
> Martin
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 
> 

Did you look at ?hist, which states:

     freq: logical; if 'TRUE', the histogram graphic is a representation
           of frequencies, the 'counts' component of the result; if
           'FALSE', _relative_ frequencies ("probabilities"), component
           'density', are plotted.   Defaults to 'TRUE' _iff_ 'breaks'
           are equidistant (and 'probability' is not specified).

So freq = FALSE plots relative frequencies (probabilities).

Please read the posting guide and look at the help for the function you 
are using and trying to understand.

HTH

Gav

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson                     [T] +44 (0)20 7679 5522
ENSIS Research Fellow             [F] +44 (0)20 7679 7565
ENSIS Ltd. & ECRC                 [E] gavin.simpsonATNOSPAMucl.ac.uk
UCL Department of Geography       [W] http://www.ucl.ac.uk/~ucfagls/cv/
26 Bedford Way                    [W] http://www.ucl.ac.uk/~ucfagls/
London.  WC1H 0AP.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%




More information about the R-help mailing list