orthogonal: Get the Slope–intercept Form of an Orthogonal
Description
If slope-point form of an equation is given, we might be interested in the
slope-intercept form of the orthogonal to the equation running through the
point.
Usage
orthogonal(b, xy)
Value
A named vector with intercept ["a"] and slope ["b"], as in
graphics::abline.
If the slope was 0, there is no slope-intercept form as this is a vertical
line. Then the intercept is NA and the slope gives the value of
x.