Description Usage Arguments Value Author(s) Examples
Adds crown geometry to tree
1 | crownShape(tree, distance, angle, crs = 25832)
|
tree |
sf point tree |
distance |
vector with measured distances |
angle |
vector with measured angles |
crs |
epsg code |
tree with crown shape poylgon
Marvin Ludwig
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.