Feature-Based Clustering of Longitudinal Trajectories
Overview
Identifies clusters of individual longitudinal trajectories. In the spirit of Leffondre et al. (2004), the procedure involves identifying each trajectory to a point in the space of measures. In this context, a measure is a quantity meant to capture a certain characteristic feature of the trajectory. The points in the space of measures are then clustered using a version of the Spectral Clustering algorithm.
- Changed the eigensolver from
eigentoeigs_sym(package RSpectra) to speed uptrajClusters(). - Fixed a small bug that occurred in
trajMeasureswhen ID=FALSE and some trajectories have less than 3 observations. - Made substantial changes to the
trajdatadata set. - Fixed a mistake in the
trajReduced()function that caused it to output the wrong number of clusters in certain situations. - Fixed labeling of the columns in the
fuzzy.partitioncomponent oftrajClusters(). - In the
scatterplots()function, the title of the plots is more informative. - To facilitate interpretation, the
summary()function, as it applies to the output of thetrajClusters()function, now includes atop_pargument which identifies, for each cluster, thetop_pmeasures which are most extreme. - The
plot()function now additionally displays the cluster medians of each standardized measure.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 6 (1 internal)includes a package overview page
- Examples that run
- 0%4 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 50%
- Help pages citing references
- 50%
Downloads
Dependencies
Installing traj adds 17 packages (14 with compiled code, 14 MB of source tarballs). Heaviest: igraph 4.8 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.
Code & Tests
Datasets
People & History
Previously maintained by Gillis Delmas TCHOUANGUE DINKOU (1.3 to 1.3.1) and Dan Vatnik (1.0 to 1.2).
Pick two releases to compare their code metrics.
- 3.1.0Latest
- RR 4.6.0 released · 2026-04-24
- 3.0.12026-01-28 · diff ↗
- 3.0.02026-01-28 · diff ↗ ·
removed 4 exports
Step1Measures, Step2Selection, Step3Clusters, critplotadded 4 exports
CVIplot, trajClusters, trajMeasures, trajReduce - RR 4.5.0 released · 2025-04-11
- 2.2.1
- 2.2.02024-07-05 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 2.1.02024-03-28 · diff ↗
- 2.0.12023-12-07 · diff ↗
- 2.0.02023-12-04 · diff ↗ ·
removed 8 exports
step1measures, step2factors, step3clusters, wrapperTraj, plotMedTraj, plotMeanTraj, plotBoxplotTraj, plotCombTrajadded 3 exports
Step1Measures, Step2Selection, Step3Clusters - RR 4.3.0 released · 2023-04-21
- 1.3.12023-04-12 · diff ↗
- 1.32023-01-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
Show 10 earlier eventsHide 10 earlier events
Package metadata
- First published
- 2014-10-22
- Total releases
- 13 / 12 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-2 in 1.3
- Minimum R
- ≥ 3.5.0
- Bundled data
- 6.4 KB / 1 file
- Download size
- 38 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("traj")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-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.