[R] histogram bin width

2006-11-06 Thread Leeds, Mark \(IED\)
hi all : i have the data below and then below that, i call the hist function three times using the Scott method for the widths of the bins. the bin width is different for the three histograms but I would like it to always be 0.05 regfardless of the data set being histogrammed. I'm sure there

Re: [R] histogram bin width

2006-11-06 Thread Francisco Zagmutt
There are several ways to do this, probably the easiest is to use truehist from MASS. i.e require(MASS) par(mfrow=c(3,1)) #3 rows of histograms, one column truehist(x,h=.05) truehist(y,h=.05) truehist(z,h=.05) I hope this helps, Francisco -- Dr. Francisco J. Zagmutt College of Veterinary