Learn R Programming

DSpat (version 0.1.6)

offset.points: Offset points from the line to actual position

Description

Convert x,y point locations on the line and a distance (negative is left of line for the direction of travel) for a series of points in a strip.

Usage

offset.points(line, pts)

Arguments

line
vector with named components of x0,y0,x1,y1; line traverses from (x0,y0) to (x1,y1)
pts
dataframe of x,y,distance for each observed point; x,y is the location on the line that is perpendicular to the object; a negative distance implies it is on the left side of the line as defined by the direction of travel

Value

pts dataframe with x,y locations of the objects offset from the line at the appropriate distance and side.

See Also

create.points.by.offset