Description Usage Arguments Value Examples
treefromthesky
1 | treefromthesky(dat)
|
dat |
1 row data.frame with columns: "Xutm", "Yutm" (Tree coordinates) and "CrownDiameter". |
A circle (sfc_POLYGON) representing the tree crown, with its diameter filled in, representing the tree from the sky.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.