Matlab, R and free software for trajectory analyses in ichnology
Description
These are the MATLAB and R codes, and a free software for trajectory analysis of a fossil trail. Trajectory.m and Trajectory.R analyze trajectory-related metrics, including turning-angle series, frequency spectra (single-sided representation), autocorrelation functions, the minimal normalized radius of curvature, the smoothness index, and the Shannon index, etc., based on a series of (x, y) coordinates (such as the two series of values x, y in the attached "Coordinates.txt"). Fractal_index.m and Fractal_index.R compute the fractal index from an image in which the trajectory is shown in black against a white background (such as the attached "Forage.tiff"). It should be noted that, for smoothness analyses, the minimal value of F is 2 by definition (of smoothness index), which is also the standard choice. Although F can be set slightly higher, the manuscript “Reproducing and understanding a fossil trail in digitized worlds: a protocol to quantitative analyses of movement trajectories” (doi: 10.1080/10420940.2026.2642060) shows that excessively large F values introduce substantial noise. Fractal analysis has not been integrated into the free software Trajectory Analysis_Version3. And to ensure best accuracy, the length of the turning angle series (N-2) is two steps shorter than the length of the points series (number of extracted points, N) in the codes and the free software.
The input data for the free software should only contain two columns of values. For example, for "Coordinates.txt", one should remove the heads "Generated by GetData ......Line #1".
Files
Coordinates.txt
Files
(106.7 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:c088b17a5c89014e3c594f7ec04620b9
|
2.7 kB | Preview Download |
|
md5:3b9f7ec649fcfdca5276e0790435a2b8
|
44.8 kB | Preview Download |
|
md5:ebf797341e5799a1610a315f6e0acca0
|
1.6 kB | Download |
|
md5:fa13cfc656788efd77b2936e18b5ae72
|
2.2 kB | Download |
|
md5:b81e43ba7b2a939560751b8e9b86fe2e
|
106.7 MB | Download |
|
md5:93fa32d2a1b71ef5b60cc878241f7f1f
|
3.5 kB | Download |
|
md5:e851310e9f42117c74847b813c879faf
|
3.8 kB | Download |
Additional details
Related works
- Is supplement to
- Dataset: 10.1080/10420940.2026.2642060 (DOI)