[R] How to draw a line in plot when I know the start point(x1, y1) and end point(x2, y2)?

2009-06-25 Thread Lesandro
Hello all, How to draw a line in plot when I know the start point(x1,y1) and end point(x2,y2)? I need make this as additional information in the graph: plot(wl2[[1]],wl2[[2]]) I think that is possible make this with the function abline(), is possible? I looked the function lines() too, but

Re: [R] How to draw a line in plot when I know the start point(x1, y1) and end point(x2, y2)?

2009-06-25 Thread Jorge Ivan Velez
Dear Lesandro, Take a look at ?segments HTH, Jorge On Thu, Jun 25, 2009 at 2:30 PM, Lesandro lesand...@yahoo.com.br wrote: Hello all, How to draw a line in plot when I know the start point(x1,y1) and end point(x2,y2)? I need make this as additional information in the graph:

Re: [R] How to draw a line in plot when I know the start point(x1, y1) and end point(x2, y2)?

2009-06-25 Thread Marc Schwartz
On Jun 25, 2009, at 1:30 PM, Lesandro wrote: Hello all, How to draw a line in plot when I know the start point(x1,y1) and end point(x2,y2)? I need make this as additional information in the graph: plot(wl2[[1]],wl2[[2]]) I think that is possible make this with the function abline(), is