[R] Vertical Line on Plot
Barry Rowlingson
B.Rowlingson at lancaster.ac.uk
Thu May 25 18:45:15 CEST 2006
Peter Lauren wrote:
> I was wondering what would be the best way to put a
> vertical line on a graph made with plot(). I can get
> an horizontal line by plotting a vector where every
> element has the same value but it is not as clear how
> a vertical line should be done.
>
abline(v=42)
you can use it for horizontal lines too: abline(h=42) and several other
things. See help(abline) for details.
Barry
More information about the R-help
mailing list