bearing_area | R Documentation |
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.
bearing_area(x)
x |
A raster or matrix. |
A function describing the rotated Bearing Area curve.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.