Skip to content
Prev 171872 / 398503 Next

plot with pairwise joined points

have a look at segments(), e.g.,

x <- rnorm(5)
y <- rnorm(5)
z <- rnorm(5)
w <- rnorm(5)

r1 <- range(x, z)
r2 <- range(y, w)
plot(r1, r2, type = "n")
points(x, y)
points(z, w, pch = 19)
segments(x, y, z, w)


I hope it helps.

Best,
Dimitris
William Simpson wrote: