View source: R/above_Or_below_Line.R
This function assesses whether a given data point is above or below a stright line described by mathematical formula.
1 | above_Or_below_Line(point_coord = NA, m = 0, b = 0, above = TRUE)
|
point_coord |
A numeric vector of point coordinates on 2D plane. Following math convention point_coord[1] is the value on X axis, while point_coord[2] is the value on Y axis. |
m |
A single numeric of the slope. |
b |
A single numeric of the intercept. |
above |
A boolean indicating whether to test if the point is above or below the line. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.