bearing_area: Calculates the Rotated Bearing Area Curve

View source: R/bearingarea.R

bearing_areaR 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)

geodiv documentation built on Oct. 6, 2023, 1:07 a.m.