Learn R Programming

calibrate (version 1.7.7)

dlines: Connect two sets of points by lines

Description

dlines connects two sets of points by lines in a rowwise manner.

Usage

dlines(SetA, SetB, lin = "dotted")

Arguments

SetA

matrix with the first set of points

SetB

matrix with teh second set of points

lin

linestyle for the connecting lines

Value

NULL

See Also

lines

Examples

Run this code
# 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