You might have to use segments() to place the line segments precisely. ?segments
>>> From: Henrik Bengtsson <h...@stat.berkeley.edu> To:Peter Alspach <peter.alsp...@plantandfood.co.nz> CC:r-help <r-help@r-project.org> Date: 11/Oct/2010 1:23p Subject: Re: [R] Line Type Specification: lty="<on><off>" but lty="<off><on>"? Thanks both, but unfortunately not. Here is a better illustration on what I want to achieve; xs <- c(0,1,2,3); ys <- c(-1,0,0,1); lty <- c("FF11", "1FF1"); plot(NA, xlim=c(0,3), ylim=c(-1,1)); lines(xs, ys, col="red", lwd=2, lty=lty[1]); lines(xs, -ys, col="blue", lwd=2, lty=lty[2]); except that I don't want those short "1":s pieces. Ideally I'd like to use: lty <- c("FF00", "0FF0"); and dashes of any lengths, e.g. lty <- c("2200", "0220"); /Henrik [[alternative HTML version deleted]] ______________________________________________ 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.