[R] Intercept between two lines
pannigh
pannigh at gwdg.de
Wed Apr 25 19:01:21 CEST 2012
Dear List,
I know this is not the first post on this topic, but I need basic help I
guess. Assuming the simple case of two lines with one intercept, how can I
make R calculate this intercept, NOT using locator().
par (xaxs="i", yaxs="i")
plot( 1, bty="n" ,xlim=c(0,300) , ylim=c(0,300) , xlab="X", ylab="Y")
curve(100-0.5*x, -50,250, add=T, col="blue")
curve(150- x , -50,250, add=T, col="red")
I want R to come up with the coordinates X=100, Y=50.
Thank you for your help!
--
View this message in context: http://r.789695.n4.nabble.com/Intercept-between-two-lines-tp4587343p4587343.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list