LeonardoRatio: Compute Leonardo's ratio In aRchi: Quantitative Structural Model ('QSM') Treatment for Tree Architecture

Description

Compute from an object of class aRchi the Leonardo's ratio (i.e R_ratio) at node, axis, branch order or tree level.

Usage

 ```1 2 3 4``` ```LeonardoRatio(aRchi, level = "Tree", position = 10) ## S4 method for signature 'aRchi' LeonardoRatio(aRchi, level = "Tree", position = 10) ```

Arguments

 `aRchi` an object of class aRchi with at least a QSM and the Nodes table (see function `Make_Node`) `level` characters. At which level R_ratio has to be estimated. `Node` for node level, `Axis` for the axis level, `branching_orde` for branch order level and `Tree` for tree level (default). `position` At which position from the node R_ratio had to be estimated. Either a numeric or a character. Use a numeric multiple of ten to select the distance from the node in cm where R ratio has to be estimated (e.g 10 for 10cm from the node). Use the % sign after a multiple of ten to select the distance from the node in percentage of the length of the parent and daughters segments (e.g 50% for an estimation at mid-length of the segments). Note that 0 is accepted and correspond to the closest position from the node.

Details

Details for Leonardo Da Vinci's ratio calculation are given in the details part of function `Make_Node`.

Value

Data.table of the summary of R_ratio for the selected level.

`Make_Node` for node metrics estimation; `WBEparameters` to estimates WBE parameters at different level;
 ```1 2 3 4 5 6 7``` ```# Read an aRchifile with a QSM and node tables. file=system.file("extdata","Tree_1_aRchi.aRchi",package = "aRchi") Tree1_aRchi=read_aRchi(file) # Leonardo'ratio at the branching order level estimated at midlength of the segments LeonardoRatio(Tree1_aRchi,level="Tree", position="50%") # Leonardo'ratio at the node level estimated at 30 cm from the node LeonardoRatio(Tree1_aRchi,level="Node", position=30) ```