sim_mov: Simulation of patch-based movement trajectory

View source: R/fcts packages.R

sim_movR Documentation

Simulation of patch-based movement trajectory

Description

Simulate a movement trajectory with a user defined number of patches and interpatch movement

Usage

sim_mov(type = c("2states", "OU"), npatches = 5, ratio = 5,
  nswitch = 150, ncore = 200, spacecore = 200,
  seq_visit = sample(1:npatches, nswitch, replace = T),
  stepDist = "gamma", angleDist = "vm", stepPar = c(0.5, 3, 1, 5),
  anglePar = c(pi, 0, 0.5, 2), s = diag(40, 2), grph = F)

Arguments

type

whether movement within patches should be based on a 2states process (from package moveHMM) or a Bivariate Ornstein-Uhlenbeck process (OU) (from package adehabitatLT)

npatches

Number of patches, default=5

ratio

Ratio (in percent) of locations associated to interpatch movement, default=5

nswitch

Number of switch/depart from patches, default=150

ncore

Number of locations within a patch per visit, default=200

spacecore

Minimum distance between center of patches, default=200

seq_visit

Specify the sequence of visit among patches, default is random sequence

stepDist

Distribution for step length if 2states specified in type, see simData of moveHMM package

angleDist

Distribution for turn angle if 2states specified in type, see simData of moveHMM package

stepPar

Parameters for step length distribution if 2states specified in type, see simData of moveHMM package

anglePar

Parameters for turn angle distribution if 2states specified in type, see simData of moveHMM package

s

Parameters for the OU process, see simm.mou of adehabitatLT package

grph

Whether a graph of the trajectory should be produced, default=F

Value

A ltraj (adehabitatLT) object

Examples

traj1<-sim_mov(type="OU", npatches=3, grph=T)
traj2<-sim_mov(type="2states", npatches=2, grph=T)

BastilleRousseau/moveNT documentation built on Aug. 26, 2023, 5:54 a.m.