MakeTrack: Make Track

Description Usage Arguments Value See Also Examples

View source: R/MakeTrack.R

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

1
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

1
2
3
4
5
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)

Example output

Loading required package: Rcpp
Loading required package: plyr

bcpa documentation built on May 1, 2019, 10:30 p.m.