View source: R/fcts packages.R
sim_mov | R Documentation |
Simulate a movement trajectory with a user defined number of patches and interpatch movement
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)
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 |
A ltraj (adehabitatLT) object
traj1<-sim_mov(type="OU", npatches=3, grph=T)
traj2<-sim_mov(type="2states", npatches=2, grph=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.