plot_ba_curve: Plots the Bearing Area Curve

View source: R/bearingarea.R

plot_ba_curveR Documentation

Plots the Bearing Area Curve

Description

Calculates and plots the Bearing Area curve for a raster or matrix using the bearing_area() function (with correctly rotated results).

Usage

plot_ba_curve(x, divisions = FALSE)

Arguments

x

A raster or matrix.

divisions

Logical, defaults to FALSE. If TRUE, divisions of the curve will be plotted. See details section for more information.

Details

If divisions = TRUE, the lines representing the best fit line to the flattest 40 percent of the curve will be shown, as well as both the x and y interception points of that line.

Value

Plots the Bearing Area curve.

Examples

# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)

# plot the bearing area curve
plot_ba_curve(normforest, divisions = TRUE)

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