Description Usage Arguments Details Value
View source: R/ComidScale_Functions.r
Calculates average direction of a line used for concluence angle
1 |
p |
an points of an sf LINESTRING |
maxvert |
maximum number of line verticies used to fit regression |
diagnostics |
logical used for plotting |
this function uses orthogonal regression to find the average direction of a series of points and returns the position vector.
max vert is the maximum number of verticies to fit average line
in some instances the function will return NAN when line is near verticle. Could fix this by changing the maximum verticies
position vector of a line unless diagnostics = T
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.