Skip to content
Prev 10695 / 63424 Next

hist (PR#4395)

On Thu, 2 Oct 2003 20:48:33 +0200 (MET DST), mittal@math.arizona.edu
wrote :
Please don't post discussion to r-bugs.  Each post to r-bugs ends up
in the bug repository, and requires manual handling.
No, that would result in misleading plots.  For example, if one bar is
twice as wide as another but they are the same height, then the
natural interpretation is that the wide bar represents twice as many
observations, or twice the probability.  This is the way densities
work, and is how histograms should work.  (However, since not everyone
interprets histograms this way, it's safest not to use variable width
bars.)

If you just want to plot some bars where the area of the bar has no
meaning, use barplot() instead of hist().

Duncan Murdoch