Analyzing and Visualizing Multidimensional Plant Traits
Overview
Implements analytical methods for multidimensional plant traits, including Competitors-Stress tolerators-Ruderals strategy analysis using leaf traits, Leaf-Height-Seed strategy analysis, Niche Periodicity Table analysis, and Trait Network analysis. Provides functions for data analysis, visualization, and network metrics calculation. Methods are based on He et al. (2026) doi:10.1002/ecog.08026.
New Features and Major Improvements
- **PTMN Module (Plant Trait Multilayer Networks)**: Introduced a comprehensive new module for constructing, analyzing, and visualizing plant trait multilayer networks. This module systematically integrates multilayer network theory with plant functional trait analysis and includes three core functions:
- **PTMN()**: Constructs phylogenetic trait multilayer networks where nodes represent traits organized into layers (e.g., organs or functional systems) and edges represent significant correlations. It supports correlation thresholding, p-value filtering, FDR correction, and optional phylogenetic correction using independent contrasts.
- **PTMN_metrics()**: Calculates node-level and global network metrics for PTMNs, identifying hub traits and cross-layer modules. Included metrics are interlayer degree, closeness, clustering coefficient, edge density, path length, and modular association.
- **PTMN_plot()**: Visualizes PTMNs with options for standard and circular layouts, customizable node and edge aesthetics, and layer/module highlighting. It clearly differentiates intralayer edges (black) from interlayer edges (red).
Bug fixes
- **LHS_strategy_scheme()**: Corrected an error in the strategy description mapping. The trait sequence was previously misinterpreted as a Leaf-Seed-Height order. The text descriptions in the strategy column have now been fixed to accurately reflect the standard Leaf-Height-Seed (L-H-S) framework.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 30
- Examples that run
- 57%17 run in a plain check · 13 never run
- Exported functions with examples
- 100%
- Documented parameters
- 97%
- Return-value docs
- 100%
- Help pages citing references
- 57%
- MultiTraits_tutorial HTML
Downloads
Dependencies
Installing MultiTraits adds 81 packages (45 with compiled code, 86 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.0.0Latest2026-03-22 · current release · diff ↗ ·
added 11 exports
PTMN, PTMN_metrics, PTMN_plot, average_interlayer_clustering_coefficient, average_interlayer_path_length, cross_layer_groups, crosslayer_module_assoc, interlayer_closeness, interlayer_clustering_coefficient, interlayer_degree, interlayer_edge_density - 0.6.02025-10-01 · diff ↗ ·
removed 7 exports
NPT, NPT_plot, Strate_CSR, TN, TN_corr, TN_metrics, TN_plotadded 10 exports
CSR_hodgson, NPT_continuous, NPT_continuous_plot, NPT_discrete, NPT_discrete_plot, PTN, PTN_corr, PTN_metrics, PTN_plot, phylo_correlation - 0.5.02025-04-20 · diff ↗
- 0.4.02025-04-16 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.3.02025-02-21 · diff ↗
- 0.2.02024-12-21 · diff ↗
- 0.1.02024-11-26
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-11-26
- Total releases
- 7 / 2 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 51 KB / 4 files
- Download size
- 2.9 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MultiTraits")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.