Re: [R] help:simple bin problem histogram

From: Jim Lemon <bitwrit_at_ozemail.com.au>
Date: Fri 28 Oct 2005 - 23:21:50 EST

sp219 wrote:
> Hi,
> I cannot seem to change the default binning settings for the x axis
> successfully using hist(). I have tried using axis() in conjunction with
> xaxt="n", but I keep getting the error message
> Warning message:
> parameter "vect" could not be set in high-level plot() function
> can anyone help please?
>
Hi Simon,

I didn't see a reply, but I think you want to use "breaks"

x<-sample(1:100,200,TRUE)
hist(x)
hist(x,breaks=seq(0,100,by=20))

Jim



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Oct 28 13:20:51 2005

This archive was generated by hypermail 2.1.8 : Fri 28 Oct 2005 - 15:15:40 EST