Skip to content
Prev 205264 / 398506 Next

Thin bars in R hist !!??

Whalojazz wrote:
You are asking for a range of data from 0 to 18 to be divided into about 
10 bins, so each bin will have a width of roughly 0.2.

If this is not what you wanted, then you need to do something else, 
depending on what you wanted but didn't tell...

Were you perhaps looking for hist(x, breaks=seq(0, 100,10))? (Notice 
that if "breaks" is a single number, it will generate breaks based on 
range(x), not xlim.)