When preparing a series of histograms I found that hist was combining the two lowest categories or bins, 1 and 2. Specifying breaks, as illustrated below, resulted in the correct histogram:
values <- sample(10,500,replace=TRUE) hist(values) hist(values,breaks = 0:10) Apparently, the number of values strictly less than 1 is shown in the first bin (and since none is less than 1, the value is 0), while the other bins appear to show the number of values less than or equal to the bin's upper bound. Is there a setting that will show the number of values less than or equal to the first bin's upper bound? And, while on the subject of hist, what commands govern the axis label line that shows the values of x? Is there an option that will cause it to show all values from lowest to highest rather than by jumps of 2 or 5? With thanks for any suggestions Version 2.5.0, Windows XP professional Ben Fairbank [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.