treefromthesky: treefromthesky

Description Usage Arguments Value Examples

Description

treefromthesky

Usage

1

Arguments

dat

1 row data.frame with columns: "Xutm", "Yutm" (Tree coordinates) and "CrownDiameter".

Value

A circle (sfc_POLYGON) representing the tree crown, with its diameter filled in, representing the tree from the sky.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(Paracou6_2016)
data(ForestZoneVolumeParametersTable)

inventory <- addtreedim(inventorycheckformat(Paracou6_2016),
volumeparameters = ForestZoneVolumeParametersTable)
dat <- inventory[679,]

Crown <- treefromthesky(dat)

library(ggplot2)
ggplot() +
 geom_sf(data = sf::st_as_sf(inventory, coords = c("Xutm", "Yutm"))) +
 geom_sf(data = Crown, fill = "forestgreen") # trees polygons

thomasgaquiere/Maria documentation built on Dec. 24, 2021, 1:20 a.m.