Package: trajr 1.5.1.9000

trajr: Animal Trajectory Analysis

A toolbox to assist with statistical analysis of animal trajectories. It provides simple access to algorithms for calculating and assessing a variety of characteristics such as speed and acceleration, as well as multiple measures of straightness or tortuosity. Some support is provided for 3-dimensional trajectories. McLean & Skowron Volponi (2018) <doi:10.1111/eth.12739>.

Authors:Jim McLean [aut, cre]

trajr_1.5.1.9000.tar.gz
trajr_1.5.1.9000.zip(r-4.5)trajr_1.5.1.9000.zip(r-4.4)trajr_1.5.1.9000.zip(r-4.3)
trajr_1.5.1.9000.tgz(r-4.4-any)trajr_1.5.1.9000.tgz(r-4.3-any)
trajr_1.5.1.9000.tar.gz(r-4.5-noble)trajr_1.5.1.9000.tar.gz(r-4.4-noble)
trajr_1.5.1.9000.tgz(r-4.4-emscripten)trajr_1.5.1.9000.tgz(r-4.3-emscripten)
trajr.pdf |trajr.html
trajr/json (API)
NEWS

# Install 'trajr' in R:
install.packages('trajr', repos = c('https://jimmcl.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jimmcl/trajr/issues

On CRAN:

7.18 score 26 stars 78 scripts 312 downloads 57 exports 3 dependencies

Last updated 4 months agofrom:c1d2005f03. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 29 2024
R-4.5-winOKOct 29 2024
R-4.5-linuxOKOct 29 2024
R-4.4-winOKOct 29 2024
R-4.4-macOKOct 29 2024
R-4.3-winOKOct 29 2024
R-4.3-macOKOct 29 2024

Exports:Traj3DAccelerationTraj3DDistanceTraj3DFromCoordsTraj3DLengthTraj3DRediscretizeTraj3DResampleTimeTraj3DSmoothSGTraj3DSpeedTraj3DStepLengthsTraj3DStraightnessTraj3DVelocityTrajAccelerationTrajAnglesTrajConvertTimeTrajDAFindFirstMaximumTrajDAFindFirstMinimumTrajDerivativesTrajDirectionalChangeTrajDirectionAutocorrelationsTrajDistanceTrajDurationTrajEmaxTrajExpectedSquareDisplacementTrajFractalDimensionTrajFractalDimensionValuesTrajFromCoordsTrajFromTrjPointsTrajGenerateTrajGetFPSTrajGetNCoordsTrajGetTimeUnitsTrajGetUnitsTrajInPolygonTrajLengthTrajLogSequenceTrajMeanVectorOfTurningAnglesTrajMeanVelocityTrajMergeTrajRediscretizeTrajResampleTimeTrajReverseTrajRotateTrajsBuildTrajScaleTrajSinuosityTrajSinuosity2TrajsMergeStatsTrajSmoothSGTrajSpeedIntervalsTrajSplitTrajSplitAtFirstCrossingTrajsStatsReplaceNAsTrajsStepLengthsTrajStepLengthsTrajStraightnessTrajTranslateTrajVelocity

Dependencies:MASSplotrixsignal

Detecting stop-start motion in trajectories

Rendered fromstop-start.Rmdusingknitr::rmarkdownon Oct 29 2024.

Last update: 2020-04-17
Started: 2019-08-23

Animal trajectory analysis with trajr

Rendered fromtrajr-vignette.Rmdusingknitr::rmarkdownon Oct 29 2024.

Last update: 2024-07-04
Started: 2017-11-20

Trajectory simulation in trajr

Rendered fromsimulations.Rmdusingknitr::rmarkdownon Oct 29 2024.

Last update: 2024-07-22
Started: 2020-04-17

Readme and manuals

Help Manual

Help pageTopics
Add Trajectory lines to a plotlines.Trajectory
Plot method for direction autocorrelationplot.TrajDirectionAutocorrelations
Plot method for trajectoriesplot.Trajectory
Plot method for trajectory speed intervalsplot.TrajSpeedIntervals
Add Trajectory points to a plotpoints.Trajectory
Approximates the acceleration of a 3-dimensional trajectoryTraj3DAcceleration
3D Trajectory distanceTraj3DDistance
Create a 3D Trajectory ObjectTraj3DFromCoords
3D trajectory lengthTraj3DLength
Resample a 3D trajectory to a constant step lengthTraj3DRediscretize
Resample a 3D trajectory to a constant time intervalTraj3DResampleTime
Smooth a 3D trajectory using a Savitzky-Golay filterTraj3DSmoothSG
Speed along a 3-dimensional trajectoryTraj3DSpeed
3D trajectory step lengthsTraj3DStepLengths
Straightness of a 3D TrajectoryTraj3DStraightness
Velocity of a trajectoryTraj3DVelocity
Approximates the acceleration of a trajectoryTrajAcceleration
Turning angles of a TrajectoryTrajAngles
Converts a delimited time string to a numeric valueTrajConvertTime
First direction autocorrelation minimum/maximumTrajDAFindFirstMaximum TrajDAFindFirstMinimum TrajDAMinMax
Calculates trajectory speed and change of speedTrajDerivatives
Directional change (DC)TrajDirectionalChange
Direction autocorrelationTrajDirectionAutocorrelations
Trajectory distanceTrajDistance
Trajectory durationTrajDuration
Trajectory straightness index, E-maxTrajEmax
Trajectory expected square displacementTrajExpectedSquareDisplacement
Fractal dimension of a trajectoryTrajFractalDimension
Fractal dimension calculationTrajFractalDimensionValues
Create a Trajectory ObjectTrajFromCoords
Create a trajectory from a subset of anotherTrajFromTrjPoints
Generate a random trajectoryTrajGenerate
Trajectory frames-per-secondTrajGetFPS
Trajectory number of coordinatesTrajGetNCoords
Trajectory temporal unitsTrajGetTimeUnits
Trajectory spatial unitsTrajGetUnits
Test whether each of the points in a trajectory lie inside a polygonTrajInPolygon
Trajectory lengthTrajLength
Logarithmically spaced sequenceTrajLogSequence
Mean vector of turning anglesTrajMeanVectorOfTurningAngles
Trajectory mean velocityTrajMeanVelocity
Combine multiple trajectories into a single whole trajectoryTrajMerge
Resample a trajectory to a constant step lengthTrajRediscretize
Resample a trajectory to a constant time interval.TrajResampleTime
Reverse a trajectoryTrajReverse
Rotate a trajectoryTrajRotate
Construct multiple trajectoriesTrajsBuild
Scale a trajectoryTrajScale
Sinuosity of a trajectoryTrajSinuosity
Sinuosity of a trajectoryTrajSinuosity2
Merge trajectory characteristicsTrajsMergeStats
Smooth a trajectory using a Savitzky-Golay filterTrajSmoothSG
Calculate speed time intervalsTrajSpeedIntervals
Split a trajectory into multiple sectionsTrajSplit
Split a trajectory into two parts, separated at the first boundary crossingTrajSplitAtFirstCrossing
Replace NAs in a data frameTrajsStatsReplaceNAs
Step lengths of multiple trajectoriesTrajsStepLengths
Trajectory step lengthsTrajStepLengths
Straightness of a TrajectoryTrajStraightness
Translate a trajectoryTrajTranslate
Velocity of a trajectoryTrajVelocity