powered by
dlines connects two sets of points by lines in a rowwise manner.
dlines
dlines(SetA, SetB, lin = "dotted")
matrix with the first set of points
matrix with teh second set of points
linestyle for the connecting lines
NULL
lines
# NOT RUN { X <- matrix(runif(20),ncol=2) Y <- matrix(runif(20),ncol=2) plot(rbind(X,Y)) text(X[,1],X[,2],paste("X",1:10,sep="")) text(Y[,1],Y[,2],paste("Y",1:10,sep="")) dlines(X,Y) # }
Run the code above in your browser using DataLab