Consult the docs, please. ?hist and the "breaks" argument. Also note the
"freq" argument, which means you should not be computing relative
frequencies manually.
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley B
Hello again. I am trying to alter the bin size on a histogram where I have
reset the vertical axis to relative frequency, rather than absolute. Beneath
is a simple example (not my real data) of this:
xvals<-rnorm(1000,0,1)
xvals
hist(xvals)
h<-hist(xvals,plot=F)
h
h$counts
h$counts<-h$counts/
2 matches
Mail list logo