Skip to content
Prev 77852 / 398502 Next

histogram - one bin for all values larger than a certain value

Florian Defregger wrote:
Hi, Florian,

See the "breaks" argument in ?hist.

x <- sample(1:40, 1000, replace = TRUE)
hist(x, breaks = c(0:10, 40))

Is this what you intended?

--sundar