bearing_area {geodiv} | R Documentation |
Calculates the Rotated Bearing Area Curve
Description
Finds a rotated version of the Bearing Area (Abbott-Firestone) curve from a raster or matrix. The resulting function should be rotated 90 degrees clockwise to get the actual Bearing Area curve.
Usage
bearing_area(x)
Arguments
x |
A raster or matrix. |
Value
A function describing the rotated Bearing Area curve.
Examples
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# find the rotated Bearing Area curve.
ba_func <- bearing_area(normforest)
# rotate the values and re-plot
xval <- environment(ba_func)$y
yval <- (1 - environment(ba_func)$x)
plot(yval ~ xval)
[Package geodiv version 1.1.0 Index]