Abstract
Mechanistic understanding of tree-ring formation and its modelling requires a cellular-based and spatially organized characterization of a tree ring, moving from whole rings, to intra-annual growth zones and individual cells. A tracheidogram is a radial profile of conifer anatomical features, such as lumen area and cell wall thickness, of sequentially- and positionally-ranked tracheids. However, its construction is tedious and time-consuming since image-analysis-based measurements do not recognize the position of cells within a radial file, and present-day tracheidograms must be constructed manually. Here we present the R-package RAPTOR that complements tracheid anatomical data obtained from quantitative wood anatomy software (e.g., ROXAS, WinCELL, ImageJ), with the specific positional information necessary for the automated construction of tracheidograms. The package includes functions to read and visualize tracheid anatomical data, and uses local search algorithms to ascribe a ranked position to each tracheid in identified radial files. The package also provides functions to ensure that tracheids are adequately aligned for identifying the first tracheid in each radial file, and obtaining the correct ranking of tracheids along each radial file. Additional functions allow automating the analyses for multiple samples and rings (batch mode) and exporting data and plots for quality control. RAPTOR allows tracheidogram users to take advantage of the latest generation of cell anatomical measuring systems. With this R-package we aim to facilitate the construction of more robust and versatile tracheidograms for the benefit of the research community.