Skip to contents

TrackSteps: step decomposition as adehabitatLT::as.ltraj. MovementNetwork: grid-cell movement network. CorePeriphery: MINRES continuous core-periphery. NetworkRobustness: largest component under targeted or random node removal and the robustness R. MovementHmm: gamma / von Mises hidden Markov model fitted by EM with Viterbi states. CrwKalman: Kalman-filtered correlated random walk with measurement error. Identical to the Python arm morie.fn.movetrack.

Usage

TrackSteps(x, y, t = NULL)

MovementNetwork(x, y, resolution, origin = c(0, 0))

CorePeriphery(A, tol = 1e-12, maxit = 10000L)

NetworkRobustness(A, strategy = "degree", seed = 1)

MovementHmm(
  step,
  angle,
  n_states = 2L,
  shape = NULL,
  scale = NULL,
  mu = NULL,
  kappa = NULL,
  maxit = 200L,
  tol = 1e-10
)

CrwKalman(x, y, gamma = NULL, sigma = NULL, tau = NULL, cycles = 20L)

Arguments

x, y

Coordinates.

t

Times (default 0, 1, ...).

resolution

Cell size.

origin

Grid origin.

A

Adjacency matrix.

tol, maxit

Convergence tolerance and iteration limit.

strategy

"degree" (targeted) or "random".

seed

Philox seed.

step, angle

Step lengths and turning angles (NA when undefined).

n_states

Number of states.

shape, scale, mu, kappa

Starting emission parameters.

gamma, sigma, tau

CRW persistence, process and measurement sd (NULL: estimate).

cycles

Coordinate-search cycles.

Value

List.

References

Calenge, C., Dray, S. and Royer-Carenzi, M. (2009). The concept of animals' trajectories from a data analysis perspective. Ecological Informatics 4, 34-41.

Boyd, J. P., Fitzgerald, W. J., Mahutga, M. C. and Smith, D. A. (2010). Computing continuous core/periphery structures for social relations data with MINRES/SVD. Social Networks 32, 125-137.

Schneider, C. M. et al. (2011). Mitigation of malicious attacks on networks. PNAS 108, 3838-3841.

Michelot, T., Langrock, R. and Patterson, T. A. (2016). moveHMM. Methods in Ecology and Evolution 7, 1308-1315.

Jonsen, I. D., Mills Flemming, J. and Myers, R. A. (2005). Robust state-space modeling of animal movement data. Ecology 86, 2874-2880.

Examples

TrackSteps(c(0, 1, 2, 2, 3), c(0, 0, 1, 2, 2))$rel_angle
#> [1]         NA  0.7853982  0.7853982 -1.5707963         NA
NetworkRobustness(rbind(c(0, 1, 1, 1), c(1, 0, 0, 0), c(1, 0, 0, 0), c(1, 0, 0, 0)))$R
#> [1] 0.1875