Re: [R] histogramm?

From: Rolf Turner <rolf_at_math.unb.ca>
Date: Wed 01 Jun 2005 - 21:26:59 EST


Gavin Simpson wrote:

        <snip>

> 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).

	Careful! You left out the quote marks on ``probabilities''.
	These are ***CRUCIAL*** inasmuch as the values are NOT
	probabilities, but rather probability ***densities***.
	Which, as I recall Bill Venables once pointed out to me, is
	the only thing that makes sense.  If you are doing a
	histogram, you are looking at a continuous random variable.
	If the variate in question is discrete, so that you
	***really*** want probabilities, you should be doing a
	barplot.

				cheers,

					Rolf Turner
					rolf@math.unb.ca

______________________________________________
R-help@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 Received on Wed Jun 01 21:31:48 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:20 EST