Re: [R] lines on plot

2010-05-20 Thread Anthony Lopez
worked perfectly. kia ora! :) On Thu, May 20, 2010 at 1:19 PM, Peter Alspach < peter.alsp...@plantandfood.co.nz> wrote: > Tena koe Anthony > > You could try: > > segments(rep(0,6), 2:7, rep(2.3, 6), 2:7) > > HTH ... > > Peter Alspach > > > -Original Message- > > From: r-help-boun...@r-p

Re: [R] lines on plot

2010-05-20 Thread Anthony Lopez
thanks! I figured there had to be an argument for it. I was surprised at not seeing anything in par, but obviously didn't read closely enough. thanks, and apologies On Thu, May 20, 2010 at 1:23 PM, Allan Engelhardt wrote: > Some variation around > > axis(2,at=2:7,lab=c("2","3","4","5","6","7"

Re: [R] lines on plot

2010-05-20 Thread Sean Anderson
On 2010-05-20, at 2:38 PM, Anthony Lopez wrote: > Is there an easier way to make this graph *without* having to specify all of > the separate segment arguments at the end? > ... > axis(2,at=2:7,lab=c("2","3","4","5","6","7")) > segments(0,2,2.3,2) > segments(0,3,2.3,3) > segments(0,4,2.3,4) > segm

Re: [R] lines on plot

2010-05-20 Thread Allan Engelhardt
Some variation around axis(2,at=2:7,lab=c("2","3","4","5","6","7"), tck=1) should do it? See tck in help("par"). Hope this helps. Allan. On 20/05/10 18:38, Anthony Lopez wrote: Is there an easier way to make this graph *without* having to specify all of the separate segment arguments at the

Re: [R] lines on plot

2010-05-20 Thread Peter Alspach
Tena koe Anthony You could try: segments(rep(0,6), 2:7, rep(2.3, 6), 2:7) HTH ... Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Anthony Lopez > Sent: Friday, 21 May 2010 5:39 a.m. > To: R-help@r-project.org