Since the two graphs use different x scales, this is a rather strange question. Getting the intersection point of line X2 is easy, but line X1 is a bit more complicated.
## X2 line
AF2 = approxfun(X2, Y)
AF2(0.4)
[1] 2.5
X1 , 0.4 X2 = 0.4, X1!= 0.4. , 0.4 X1 = 2.5 X1 = 3, , X1 = 2.75.
AF1 = approxfun(X1, Y)
AF1(2.75)
[1] 1.75
:
plot(X1, Y)+lines(X1,Y) + abline(v=0.4, col="red")
par(new=TRUE)
plot(X2, Y)+lines(X2,Y)
abline(v=0.4)
points(c(0.4,0.4), c(1.75, 2.5), pch=20, col="red")
