Description Usage Arguments Value Examples
The edges in the module will be set to the edges in the adjacency matrix. The edges are undirected, and only the lower triangle of the matrix is considered. See ?set_module_edges for more details.
1 2 | create_module_from_adjacency_matrix(adjacency_matrix, nodes = NULL,
module_name = NULL, run_checks = TRUE)
|
adjacency_matrix |
The adjacency matrix used to create the module. |
nodes |
A numeric vector indicating which nodes in the network are contained in this module. |
module_name |
(optional) Character string specifying the name of the module. If NULL, the module will be unnamed. |
run_checks |
If TRUE, then the 'adjacency_matrix' argument is checked. |
A 'network_module' object.
1 2 3 4 | nw <- random_network(10)
nw <- gen_partial_correlations(nw)
adj_mat <- get_adjacency_matrix(nw)
create_module_from_adjacency_matrix(adj_mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.