[R] draw n-1 lines with n X and n Y

mirko86 mirkospagnol at gmail.com
Tue Aug 25 18:15:25 CEST 2009


I want to draw lines using a matrix with the X-axe on the first column, and
the the Y-axe on the second column.
These lines have to link the n points of a graph, so they are n-1, but the
resout using  these two commands:
		X <- matrix(scan("MaxInterEdges.R",0), ncol=2);
		lines(X[,1], X[,2], type = "l", col = "red");

is wrong, becose the lines are many more.

What can I do? 
-- 
View this message in context: http://www.nabble.com/draw-n-1-lines-with-n-X-and-n-Y-tp25137514p25137514.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list