Learn R Programming

RSurvey (version 0.4.5)

tran.profile: Calculate the Profile Along a Transect

Description

This function determines the profile spatial coordinates along a transect.

Usage

tran.profile(vertices)

Arguments

vertices
a matrix with rows corresponding to the transect vertices and columns to spatial coordinates.

Value

  • A matrix with rows corresponding to locations along a profile. Variables associated with each location include: llll{ [,1] x numeric locations on the x-axis [,2] y numeric locations on the y-axis [,3] h numeric locations on the local x-axis. [,4] z numeric locations on the z-axis }

Examples

Run this code
data(confluence)
vert <- matrix(c(679164, 4135733, 679239, 4135730), nrow = 2, ncol = 2, 
        byrow = TRUE, dimnames = list(c("1", "2"), c("x", "y")))
prof <- tran.profile(vert)
prof

Run the code above in your browser using DataLab