[Rd] weird breaks in hist (PR#2431)

reinhold.koch@unibas.ch reinhold.koch@unibas.ch
Wed Jan 8 14:08:09 2003


Full_Name: Reinhold Koch
Version: 1.6.1
OS: redhat 8.0
Submission from: (NULL) (131.152.84.111)


I came across rather weird behavior of the breaks in hist:

hist(1:3)

gives the expected result, besides an unnecessary gap between 2nd and 3rd
column

hist(1:4)

always merges up the first two columns, also if I resort to
hist.default(1:4,breaks=1:4). hist.default(1:4, include.lowest=F) gives an
error:

Error in hist.default(1:4, include.lowest = F) :
        some `x' not counted; maybe `breaks' do not span range of `x'