Skip to content
Prev 319229 / 398506 Next

vertical lines in R plot

Like this:

segments(x0=c(5.0,5.5,6), y0=c(0,0,0), x1=c(5.0,5.5,6), y1=c(0.12,0.60,0.20))

If you wanted them to extend the entire height of the plot,
abline(v=c(5.0,5.5,6))
is simpler.

Thanks for the reproducible example,
Sarah
On Mon, Mar 11, 2013 at 10:10 AM, Naser Jamil <jamilnaser79 at gmail.com> wrote: