adj2stack: Calculation of network metrics

View source: R/fcts packages.R

adj2stackR Documentation

Calculation of network metrics

Description

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)

Usage

adj2stack(adjmov, grph = T, mode = "directed", weighted = T, ...)

Arguments

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"

Value

A raster stack object

Examples

traj1<-sim_mov(type="OU", npatches=3, grph=T)
stck<-adj2stack(traj2adj(traj1, res=100), grph=T)

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