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) > segments(0,5,2.3,5) > segments(0,6,2.3,6) > segments(0,7,2.3,7)
abline(h = 2:7) grid() is another option also, axis(2, at = 2:7) is all you need Sean ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.