Hi R-helpers
I would like to produce a histogram with uneven bins (e.g., 0, 1-2, 3-5,
6-10, 10-20, 20) but I would like the resulting bars to be the same width (
i.e., a bar's width would not be proportional to its corresponding bin
size).
Also, the x and y axes of my histograms frequently
will this work for you?
x - runif(1000, 0, 40)
x.c - cut(x, breaks=c(0, 1, 3, 6, 10, Inf))
barplot(table(x.c))
On 4/19/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi R-helpers
I would like to produce a histogram with uneven bins (e.g., 0, 1-2, 3-5,
6-10, 10-20, 20) but I would like the