View source: R/fcts packages.R
adj2stack | R Documentation |
Transform an adjancency matrix to a series of network metrics at the node-level (weight, degree, betweenness, transitivity, eccenctricity) and graph level (diameter, transitivity, density, and modularity)
adj2stack(adjmov, grph = T, mode = "directed", weighted = T, ...)
adjmov |
Adjacency matrix, need to be an object produced by function traj2adj |
grph |
Whether node level metrics are to be plotted |
mode |
Whether the graph should be "directed" or "undirected. Default="directed". See "graph_from_adjacency_matrix" from package "igraph" |
weighted |
Whether the graph should be weighted (=TRUE) or unweighted (= NULL). Default is weighted. See "graph_from_adjacency_matrix" from package "igraph" |
A raster stack object
traj1<-sim_mov(type="OU", npatches=3, grph=T)
stck<-adj2stack(traj2adj(traj1, res=100), grph=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.