[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

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,

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 in the

Re: [R] Help with Hist

2010-11-15 Thread Ben Bolker
Steve Sidney sbsidney at 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

Re: [R] Help with Hist

2010-11-15 Thread sbsidney
: Mon, 15 Nov 2010 16:08:47 To: r-help@r-project.org 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

Re: [R] Help with Hist

2010-11-15 Thread Ivan Calandra
:47 To:r-help@r-project.org 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 Steve Sidney
Message- From: Ivan Calandraivan.calan...@uni-hamburg.de Sender: r-help-boun...@r-project.org Date: Mon, 15 Nov 2010 16:08:47 To:r-help@r-project.org 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