rrate: relief rate

View source: R/topography.R

rrateR Documentation

relief rate

Description

Compute the relief rate from a sub-sample of a 3d triangle mesh. For instance, the relief rate could be computed from the portion of a molar above the lowermost point of its central basin, compared to the whole tooth.

Usage

rrate(uncropped, cropped, origin = TRUE)

Arguments

uncropped

object of class mesh3d. Should entirely contain the 'cropped' argument.

cropped

object of class mesh3d. Should be part of the 'uncropped' argument.

origin

logical, if TRUE both cropped and uncropped mesh are translated along the z-axis so that the lowest z of the uncropped mesh = 0; see dkorigin

Value

A single relief rate value.

References

doi: 10.1002/ajpa.23916Thiery et al. (2019)

Examples

medelev <- median(elev(dkmodel$cusp))
basins <- dkcrop(dkmodel$cusp, which(elev(dkmodel$cusp) < medelev))
cusps <- dkcrop(dkmodel$cusp, which(elev(dkmodel$cusp) > medelev))

rrate(dkmodel$cusp, basins)
rrate(dkmodel$cusp, cusps)

doolkit documentation built on Feb. 16, 2023, 11 p.m.