crownShape: Crown Shapes

Description Usage Arguments Value Author(s) Examples

View source: R/crownShape.R

Description

Adds crown geometry to tree

Usage

1
crownShape(tree, distance, angle, crs = 25832)

Arguments

tree

sf point tree

distance

vector with measured distances

angle

vector with measured angles

crs

epsg code

Value

tree with crown shape poylgon

Author(s)

Marvin Ludwig

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# create example tree
t = data.frame(id = "tree1", x = 5, y = 5)
t = sf::st_as_sf(t, coords = c(2,3))

# measurements with angle and distance
m = data.frame(a = c(0,90,160,200,270),
               d = c(1,2,1,3,2))

tc = crownShape(t = t, angle = m$a, distance = m$d)
plot(tc)

envima/Rsenal2 documentation built on Oct. 16, 2020, 7:14 p.m.