dd.crown: Nearest Crown Distance and Direction from Plot Center

View source: R/dd.crown.R

dd.crownR Documentation

Nearest Crown Distance and Direction from Plot Center

Description

This function calculates the distance and direction to the nearest crown pixel from the plot center

Usage

dd.crown(crowns = NA, thresh.val = 1, degrees = FALSE, from = FALSE)

Arguments

crowns

Raster object of tree crown positions. Defaults to NA.

thresh.val

Threshold value used for tree crown selection. Defaults to 1.

degrees

Boolean switch for the output of direction values in degrees rather than radians. Defaults to FALSE.

from

Boolean switch for the output of direction values from nearest crowns rather than to nearest crowns. Defaults to FALSE.

Value

The results of dd.crown

Author(s)

Adam Erickson, adam.erickson@ubc.ca

References

http://www.sciencedirect.com/science/article/pii/S0168192315001173

Examples

dd.crown(crowns=itc.crowns, thresh.val=1, degrees=FALSE, from=FALSE)

adam-erickson/gapfraction documentation built on May 12, 2024, 6:15 p.m.