Hello,
What you are doing wrong? Correctly read the help page.
>From the help page: "if FALSE, probability densities, component
density, are plotted (so that the histogram has a *total area of
one*)"
> sum(check$density * diff(check$breaks))
[1] 1
HTH,
Pascal
On Tue, May 20, 2014 at 3:06 PM, v
Dear List,
I am trying to make a histogram with following data:
dput(a)
c(1, 0, 1.5, 1, 0, 0, 0, 1, 1.5, 0, 0, 1, 0, 0, 0, 1, 1, 2, 1,
0, 0, 0, 1, 1, 1, 0, 1, 0.5, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0,
0, 0, 0, 0, 1, 1, 1, 0, 0, 1.5, 0, 0, 0, 0, 1, 0, 0, 0.5, 0,
0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1,
2 matches
Mail list logo