[R] how to draw a vertical line from points to x-axis
Adam D. I. Kramer
adik-rhelp at ilovebacon.org
Tue Sep 9 00:27:16 CEST 2008
I think you want the ?lines function.
To connect a point (x,y) to the x-axis,
...draws a line from that point to the x-axis. You may also want to specify
pch=c(?,""),type="b" where ? is the original point type (which you don't
want to "run over") and "" is the pch for theline on the axis.
On Sun, 7 Sep 2008, Anny Huang wrote:
> I want to know how to draw a line connecting each point to the x-axis
> perpendicularly (i.e. a vertical line).
> abline(v=...) seems not to work for my purpose, because it runs over the
> data point. Can anyone help? Thanks.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help