dynBGBvariance | R Documentation |
A function to calculate the dynamic Bivariate Gaussian Bridge orthogonal and parallel variance for a movement track
dynBGBvariance(move, locErr, margin, windowSize,...)
move |
a |
locErr |
single numeric value or vector of the length of coordinates that describes the error of the location (sender/receiver) system in map units. Or a character string with the name of the column containing the location error can be provided. |
margin |
The margin used for the behavioral change point analysis. This number has to be odd. |
windowSize |
The size of the moving window along the track. Larger windows provide more stable/accurate estimates of the brownian motion variance but are less well able to capture more frequent changes in behavior. This number has to be odd. |
... |
Additional arguments |
The function uses windowApply
with the BGBvarbreak
function in order to implement a dynamic calculation of the variance
a dBGBvariance-class object
Bart Kranstauber & Anne Scharf
Kranstauber, B., Safi, K., Bartumeus, F.. (2014), Bivariate Gaussian bridges: directional factorization of diffusion in Brownian bridge models. Movement Ecology 2:5. doi:10.1186/2051-3933-2-5.
dynBGB, brownian.motion.variance.dyn
data(leroy)
leroy <- leroy[230:265,]
## change projection method to aeqd and center the coordinate system to the track
dataAeqd <- spTransform(leroy, CRSobj="+proj=aeqd +ellps=WGS84", center=TRUE)
dBGBvar <- dynBGBvariance(dataAeqd, locErr=9, windowSize=31, margin=15)
dBGBvar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.