project_on_transect.Rd
A function to project data on a bestfitting transect line
project_on_transect(x, y)
x | x coordinate of points |
---|---|
y | y coordinate of points |
xp x coordinate of points projected on the transect
yp y coordinate of points projected on the transect
xt x coordinate along the transect (new coordinate x)
yt y coordinate corresponding to the distance to the transect (new coordinate y)
slopexy slope of transect
interceptxy intercept of transect