[R] histogram bug?: type='count', unequal breaks
scottyv@bell-labs.com
scottyv at bell-labs.com
Fri Dec 13 19:45:03 CET 2002
I ask for a histogram of counts with slightly uneven breaks but
histogram() ignores the 'type' argument and provides density scaling
instead.
x = sample(1:3, 100, replace=TRUE)
histogram( ~ x, breaks=c(0,1.5,2.5,3.5), type='count')
My real application has time data with month boundaries for the breaks
and I DO want counts on the y-axis.
A work-around is not difficult but shouldn't histogram honor the
type argument when given?
Scott Vander Wiel
Statistics and Data Mining Research
Bell Laboratories, Lucent Technologies
More information about the R-help
mailing list