Re: [R] histogram - density on y axis and restriction to interval [0, 1]

2011-06-09 Thread Sarah Goslee
Did you read the help for hist? freq: logical; if ‘TRUE’, the histogram graphic is a representation of frequencies, the ‘counts’ component of the result; if ‘FALSE’, probability densities, component ‘density’, are plotted (so that the histogram has a total area of

[R] histogram - density on y axis and restriction to interval [0, 1]

2011-06-09 Thread Christine SINOQUET
Hello, To indicate probability densities instead of counts on a histogram, I specify freq = FALSE. However, I expect that summing all top y coordinates over all the intervals of the histogram will provide 1. 1) v <- c(0.2885, 0.2988, 0.3139, 0.2615, 0.3179, 0.3163, 0.2583, 0.3052, 0.2527,