Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

LeonardoRatio

Compute Leonardo's ratio


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

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.

See Also

Make_Node for node metrics estimation; WBEparameters to estimates WBE parameters at different level;

Examples

# 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)

aRchi

Quantitative Structural Model ('QSM') Treatment for Tree Architecture

v1.0.5
CeCILL
Authors
Olivier Martin
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.