Re: [R] Resetting bin size in histogram having already changed to relative frequencies

2018-08-31 Thread Bert Gunter
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

[R] Resetting bin size in histogram having already changed to relative frequencies

2018-08-31 Thread Nick Wray via R-help
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/