project_points: Project points along a section.

View source: R/project_data.R

project_pointsR Documentation

Project points along a section.

Description

Return a dataframe with two columns (same row order as the input) 'distance_along' : distance along the profile of the projections 'distance_to' : perpendicular distance to the profile of the points All input should be in cartesian coordinates with the same units

Usage

project_points(x, y, X1, Y1, X2, Y2, width = NULL, inc = NULL, value = NULL)

Arguments

x

X coordinates of the points to be projected (vector)

y

Y coordinates of the points to be projected (vector)

X1

X coordinate of starting point defining the projection line

Y1

Y coordinate of starting point defining the projection line

X2

X coordinate of end point defining the projection line

Y2

Y coordinate of end point defining the projection line

width

half width of the projection swath (optional)

inc

number of bins along the profile for the stats (optional)

value

parameter for which the statistics should be returned (optional, vector of same length and order as 'x' and 'y')

Value

A dataframe with the distance along and to the sections of the input points. If 'width', 'inc' and 'value' are supplied a dataframe containing the binned ('inc' bins) statistics of 'value' along the section is returned instead


VincentGodard/gtbox documentation built on Sept. 4, 2022, 3:46 a.m.