Two points:
df.x <- c(0.0014, 0.0027)
df.y <- c(17.38, 22.49)
I want to know y at x==0.002. Linear interpolation gives 19.74.
A linear plot shows the intersection:
plot(df.x, df.y, type="b", xlim=c(0.001,0.005), ylim=c(10,30))
abline(v=0.002)
abline(h=19.74)
However, setting the x-axis to logarithmic, the line between the two points crosses x=0.002 at y>19.74:
plot(df.x, df.y, log="x", type="b", xlim=c(0.001,0.005), ylim=c(10,30))
abline(v=0.002)
abline(h=19.74)
I have absolutely no idea about the reason of this shift in y-direction.
I played around with: untf in abline(), par(), log10()
