Re: [R] lines on plot

2010-05-20 Thread Anthony Lopez
al 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 > > Subject: [R] lines on plot > > > > Is there an easier wa

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
t; To: R-help@r-project.org > Subject: [R] lines on plot > > Is there an easier way to make this graph *without* having to specify > all of > the separate segment arguments at the end? > > > x <- c(1,2) > > off <- c(4,5.5) > > def <- c(5.5,5.9) > > par(fg=&q

[R] lines on plot

2010-05-20 Thread Anthony Lopez
Is there an easier way to make this graph *without* having to specify all of the separate segment arguments at the end? > x <- c(1,2) > off <- c(4,5.5) > def <- c(5.5,5.9) > par(fg="lightblue4") > plot(x,off,type="o",col="dodgerblue4",ylim=c(2,7),xlim=c(0.7,2.3),axes=F,xlab="Labor Condition",ylab=