View source: R/fcts packages.R
traj2adj | R Documentation |
Transform an ltraj object to an adjacency matrix using a user-specified grid size
traj2adj(mov, res = 100, grid = NULL)
mov |
Movement trajectory, need to be a ltraj object |
res |
Grid size (based on coordinate system of movement trajectory) |
grid |
User specified grid (a raster), needs to have a larger extent than the movement trajectory |
A list of objects containing the adjacency matrix, the grid use, and patch/corridor identification (only useful if sim_mov was used)
traj1<-sim_mov(type="OU", npatches=3, grph=T)
adj<-traj2adj(traj1, res=100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.