Changes to the trajr
package
trajr 1.5.0.9000
- Minor documentation changes: mention 3D in package overview and use
new roxygen method to generate package documentation
(https://github.com/r-lib/roxygen2/issues/1491).
trajr 1.5.0
- Added some basic 3D trajectory functionality; see
Traj3DFromCoordsand all functions prefixed withTraj3D.
- TrajAnglesnow returns- NAfor the angles
before and after zero-length segments. Thanks to Valentin Baumann for
identifying this bug. This change could potential cause problems with
existing code, but such a problem would indicate a problem with the old
analysis. The bug occurred because in base R,- Arg(0) == 0,
which is not correct. Various function that take means of TrajAngles now
remove NA values.
- Added function TrajFromTrjPointsto simplify operations
such as removing zero-length segments from a trajectory.
- Fix documentation of TrajDirectionalChangeandTrajAngles. The documentation incorrectly stated that the
number of angles returned was number of points - 1. It now states that
the number of angles is number of points - 2 (which is number of
segments - 1).
- Fix bug in TrajFromCoordsthat incorrectly treated NA
values in columns other than coordinates or time as an error.
- Fix bug in TrajScale;yScalewas being
ignored.
- Add some more named parameters to plot.Trajectoryto
avoid passing them tographics::lines.
- Add arg simConstantSpeedtoTrajRediscretizeandTraj3DRediscretize.
- Add arg check.namestoTrajsMergeStats.
- Updated github continuous integration actions (using
usethis::use_github_action(“test-coverage”) and
usethis::use_github_action_check_release()). This change does not affect
users
trajr 1.4.0
- Allow the creation of trajectories with 0 points in
TrajFromCoords.
- Fixed bug in TrajSpeedIntervals: no intervals were being returned if
the entire trajectory qualified as an interval.
- Fix bug in plot.TrajSpeedIntervals: time (x-axis) didn’t handle
trajectories with a non-zero starting time.
- Added functions to assist in simulating trajectories that are
bounded or vary spatially in some way. The new functions are
TrajInPolygon,TrajSplit,TrajMergeandTrajSplitAtFirstCrossing.
- Added functions to calculate velocity and acceleration:
TrajVelocityandTrajAcceleration. The
documentation forTrajDerivativeshas been updated to state
that theaccelerationreturned is not really acceleration,
rather it is change in speed over time.
- Added argument difftoTrajSpeedIntervalsto control how speed is calculated. Default is “backward” so the
function is backwards-compatible, although “central” is usually a better
choice.
trajr 1.3.0
- Detect and report some invalid parameter values.
- Altered handling of parameter readcsvFntoTrajsBuildto make it possible to usereadr::read_csvwithout a wrapper function.
- Added function TrajResampleTimeto resample a
trajectory to fixed step times.
- Added parameters start.pt.pchandstart.pt.colto plotting functions.
- Added parameter dttoTrajTranslate
- Fix vertical extents of rectangles in
plot.TrajSpeedIntervalsto handle non-default ylim
values.
- Added optional progressbar to TrajsMergeStats.
- TrajsMergeStats now passes the arguments
stringsAsFactors = FALSEto rbind. This prevents incorrect
behaviour and the warning “invalid factor level, NA generated” if one or
more of your statistics are characters.
- Enhanced TrajRotateto allow absolute rotation and
arbitrary origin of rotation.
trajr 1.2.0
- Added start.pt.cex parameter to function
lines.Trajectory.
- Added function TrajConvertTime.
trajr 1.1.0
- Added correct citation.
- Fixed: plot.TrajSpeedIntervalswas not passing
additional arguments (...) toplot.
- Added: functions TrajDuration,TrajMeanVelocity,TrajTranslate.
- Added translateToOriginparameter to functionTrajsBuild.