[Rd] hist (PR#2512)
ripley@stats.ox.ac.uk
ripley@stats.ox.ac.uk
Fri Jan 31 18:36:05 2003
hist() does not label bins: it is not a barplot. It labels an x axis,
from which you can read the boundaries of the bins, in this case [2,3],
(3,4], (4,5], (5,6]. That's what the help page says it does, so where is
the bug in R?
On Fri, 31 Jan 2003 surko@salk.edu wrote:
> The command hist(c(2,2,2,4,5,6)) returns a histogram that
looks incorrect -- 3 in the bin labeled 2 on the left, but
1 each in the bins labeled 3,4,5 on the left.
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595