add_physiological_ages | R Documentation |
Add the physiological age of an annual shoots based on their length
add_physiological_ages(aRchi, th = c(0.1, 0.2, 0.5), correct_PA = TRUE) ## S4 method for signature 'aRchi' add_physiological_ages(aRchi, th = c(0.1, 0.2, 0.5), correct_PA = TRUE)
aRchi |
an object of class aRchi containing at least a QSM. |
th |
numeric. The length thresholds used to segment annual shoots into physiological ages. |
correct_PA |
logical. Should a correction of the physiological age be performed ? This correction is based on the assumption that the child annual shoot can not be of lower order than its parent annual shoot. The parent annual shoot physiological age is modified accordingly. |
The aRchi file with a physiological age field added to the QSM slot
Lecigne, B., Delagrange, S., & Taugourdeau, O. (2021). Annual Shoot Segmentation and Physiological Age Classification from TLS Data in Trees with Acrotonic Growth. Forests, 12(4), 391. https://doi.org/10.3390/f12040391
# import aRchi file aRchi=system.file("extdata","Tree_2.aRchi",package = "aRchi") aRchi = aRchi::read_aRchi(aRchi) # smooth skeleton aRchi = smooth_skeleton(aRchi) # segment annual shoots aRchi = aRchi::segment_annual_shoots(aRchi,tree_age = 13) # add physiological ages aRchi = aRchi::add_physiological_ages(aRchi) plot(aRchi,color="physiological_age",bg = "white")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.