dis | R Documentation |
calculate the distance from a point to a line
dis(coef, Int, x0, y0)
coef |
The slope of the line. Set as NA when the line is perpendicular to x-axis. |
Int |
The intercept of the line. Set as intersected x-coordinate of X-axis and the line. |
x0 |
x-coordinate of the point |
y0 |
y-coordinate of the point |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.