View source: R/psp.slope.intercept.R
slope.psp | R Documentation |
Calculates a slope for each line segment in a psp object
slope.psp(x, orthogonal = FALSE)
x |
a |
orthogonal |
logical indicating whether a slope for orthogonal line to |
The function assumes that each line segment has an infinite domain and follows the line equation $y = slope * x + intercept$.
Returns a numeric vector containing slopes of line segments in the same order than x
Mikko Vihtakari
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.