Skip to content
Prev 973 / 63424 Next

hist: rel.freqs

In R0.61,

In hist(), should the line
  rel.freqs <- counts/(sum(x) * diff(breaks))
computing the relative frequencies or height of the rectangles 
in a histogram not be
  rel.freqs <- counts/(sum(counts) * diff(breaks))
instead, or do I misunderstand something?

Thanks,
 Philippe