bearing_area: Calculates the Rotated Bearing Area Curve

Description Usage Arguments Value Examples

View source: R/bearingarea.R

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

1

Arguments

x

A raster or matrix.

Value

A function describing the rotated Bearing Area curve.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# import raster image
data(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)

Example output



geodiv documentation built on Sept. 5, 2021, 5:26 p.m.