Skip to content

MultiTraits

1.0.0Package record

Analyzing and Visualizing Multidimensional Plant Traits

0packages depend
4.9Kdownloads / year
–test coverage
13/13flavors OK

Overview

About
Maintained by Yan HeCRAN page ↗

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.

Changes in 1.0.0

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

CRAN checks
13OK
Slowest check: 4.0 min · r-release-macos-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.0.0
READMEYes · 1,198 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.0.0Citation fileNoWebsitenot declared in DESCRIPTION
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%
Vignettes (1)

Downloads

4.9K
CRAN downloads in the past year
Rank #6,936 · ~13/day · ~406/mo
Daily download trend is not available in this view yet.
49830 days
1.2K90 days
4.9K1 year
Compare downloads with other packages →
Also on107 r2u1 autocran

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.0.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (4)
Author, Maintainer since 0.1.0 (2024)
Author · added in 0.3.0
Author · added in 0.3.0
Author · added in 0.3.0
Releases (7)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.0Latest
    record
    2026-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.0
    record
    2025-10-01 · diff ↗ ·
    removed 7 exports
    NPT, NPT_plot, Strate_CSR, TN, TN_corr, TN_metrics, TN_plot
    added 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.0
    record
    2025-04-20 · diff ↗
  • 0.4.0
    record
    2025-04-16 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.3.0
    record
    2025-02-21 · diff ↗
  • 0.2.0
    record
    2024-12-21 · diff ↗
  • 0.1.0
    record
    2024-11-26
  • R
    R 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")
He, Y., Lai, J., Liu, Z., & Mao, L. (2026). MultiTraits: Analyzing and Visualizing Multidimensional Plant Traits (Version 1.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MultiTraits version 1.0.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy