lf_fromPoints | R Documentation |
get linear fuction from 2 points x1 and x2
lf_fromPoints(x, ...)
x |
matrix or data frame of points just first point |
... |
second point |
matrix with slope and intercept
Florian Wagner florian.wagner@wagnius.ch
lf_fromPoints(c(0,0),c(1,1))
Points <- rbind(c(-2,5),
c( 3,3))
result <- lf_fromPoints(Points)
result
plot(Points, asp = 0, xlab = "x", ylab = "y")
abline(result[,2],result[,1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.