View source: R/oxy-SSNtools.R View source: R/SSNtools.R
NDScanMatrix | R Documentation |
calculate network density per node in a given threshold (searching window) from a user-defined matrix.
NDScanMatrix(
nodes,
edges,
thres,
matrix,
min = 3,
directed = FALSE,
bipartite = FALSE
)
nodes |
nodes of graph (a list of named lists) |
edges |
edges of graph (a list of lists) |
thres |
threshold (e.g., distance, travel time) to calculate network density, given the user-defined matrix |
matrix |
a user-defined full matrix, including all pairs of nodes. The matrix's column and row names are consistent with nodes' labels. The cell values can be distance, travel time and so on. |
min |
(optional) minimum number of nodes in the searching window |
directed |
(optional) boolean value of whether the network is directed. |
bipartite |
(optional) boolean value of whether the data is a bipartite network |
DETAILS
a list of two dataframes. The first R datafrmae contains a column of node label, and a column of heat associated with the node. The second R dataframe contains the edge pairs and a boolean column indicating whether the edge is within the scanning window.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.