Sample code:
m=matrix(1:54,nrow=9)
l=1:6
plot(l,m[1,],type="l",xlim=1:6)
lines(l,m[2,])
lines(l,m[3,])
legend(2,3,legend=c("m1","m2","m3")))
Now, how can I find the point where say m1and m2 intersects?
Any help is appreciated.
Sample code:
m=matrix(1:54,nrow=9)
l=1:6
plot(l,m[1,],type="l",xlim=1:6)
lines(l,m[2,])
lines(l,m[3,])
legend(2,3,legend=c("m1","m2","m3")))
Now, how can I find the point where say m1and m2 intersects?
Any help is appreciated.
Copyright © 2021 Jogjafile Inc.
Note, this is an answer to OP’s original question; they have since substantially edited their question.
This is an extension of @dcarlson's solution here, adding
lm()to find intercepts and slopes from vectors of points.The intersection of m3 and m5 is off your plot area, but we can plot the intersection of m2 and m5: