I have 3 points and would like to form a triangle with them, then overlap another triangle with 3 more points and so on.
I tried this, but I can not make the triangle and the limits of the following graphs are ignored.
a = matrix(c(rnorm(6)), ncol = 2)
b = matrix(c(rnorm(6)), ncol = 2)
d = matrix(c(rnorm(6)), ncol = 2)
plot(a[,1]~a[,2],pch = 16)
par(new = T)
plot(b[,1]~b[,2], axes = F, ann = F, pch = 16, col = "red")
par(new = T)
plot(d[,1]~d[,2], axes = F, ann = F, pch = 16, col = "green")
Thank you in advance.