Re: [R] Help with Hist

2010-11-15 Thread Steve Sidney
--Original Message- From: Ivan Calandra Sender: r-help-boun...@r-project.org Date: Mon, 15 Nov 2010 16:08:47 To: Reply-To: ivan.calan...@uni-hamburg.de Subject: Re: [R] Help with Hist Hi, I think you should also give the upper extreme: x<- c(rnorm(80)+10, 101:110, 2001:2010) hist(x, break

Re: [R] Help with Hist

2010-11-15 Thread Ivan Calandra
ivan.calan...@uni-hamburg.de Subject: Re: [R] Help with Hist Hi, I think you should also give the upper extreme: x<- c(rnorm(80)+10, 101:110, 2001:2010) hist(x, breaks=c(0, 20, 40, 60, 80, 100, 200, 500)) Error in hist.default(x, breaks = c(0, 20, 40, 60, 80, 100, 200, 500)) : some 'x&#

Re: [R] Help with Hist

2010-11-15 Thread sbsidney
0 16:08:47 To: Reply-To: ivan.calan...@uni-hamburg.de Subject: Re: [R] Help with Hist Hi, I think you should also give the upper extreme: x <- c(rnorm(80)+10, 101:110, 2001:2010) hist(x, breaks=c(0, 20, 40, 60, 80, 100, 200, 500)) Error in hist.default(x, breaks = c(0, 20, 40, 60, 80,

Re: [R] Help with Hist

2010-11-15 Thread Ben Bolker
Steve Sidney mweb.co.za> writes: > I am trying to re-scale a histogram and using hist() but can not seem to > create a reduced scale where the upper values are not plotted. > > What I have is about 100 of which 80 or so are between a value of 0 and > 40 , one or two in the hundreds and an outl

Re: [R] Help with Hist

2010-11-15 Thread Dieter Menne
SteveSB wrote: > > What I have is about 100 of which 80 or so are between a value of 0 and > 40 , one or two in the hundreds and an outlier around 2000. > > Have a look at gap.barplot in package plotrix. Personally, I prefer to use xlim(x(0,100) in this case and add "one outlier at t=2000" i

Re: [R] Help with Hist

2010-11-15 Thread Ivan Calandra
Hi, I think you should also give the upper extreme: x <- c(rnorm(80)+10, 101:110, 2001:2010) hist(x, breaks=c(0, 20, 40, 60, 80, 100, 200, 500)) Error in hist.default(x, breaks = c(0, 20, 40, 60, 80, 100, 200, 500)) : some 'x' not counted; maybe 'breaks' do not span range of 'x' hist(x, breaks

[R] Help with Hist

2010-11-15 Thread Steve Sidney
Dear list I am trying to re-scale a histogram and using hist() but can not seem to create a reduced scale where the upper values are not plotted. What I have is about 100 of which 80 or so are between a value of 0 and 40 , one or two in the hundreds and an outlier around 2000. What I would