MakeTrack {bcpa} | R Documentation |
Make Track
Description
Simple convenience function for creating a track
class object from X-Y-Time movement data. A track
class object can be conveniently plotted and analyzed within bcpa
.
Usage
MakeTrack(X, Y, Time)
Arguments
X |
vector of X locations |
Y |
vector of Y locations |
Time |
vector of time (can be POSIX) |
Value
a track
class data frame, with three columns: X
, Y
and Time
.
See Also
plot.track
Examples
X <- cumsum(arima.sim(n=100, model=list(ar=0.8)))
Y <- cumsum(arima.sim(n=100, model=list(ar=0.8)))
Time <- 1:100
mytrack <- MakeTrack(X,Y,Time)
plot(mytrack)
[Package bcpa version 1.3.2 Index]