Description Usage Arguments Value Examples
The edge weights in the module will be set to the corresponding values in the association matrix. The edges are undirected, and only the lower triangle of the matrix is considered. See ?set_module_weights for more details.
1 2 | create_module_from_association_matrix(association_matrix, nodes = NULL,
module_name = NULL)
|
association_matrix |
The association 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. |
A 'network_module' object.
1 2 3 4 | nw <- random_network(10)
nw <- gen_partial_correlations(nw)
assoc_mat <- get_association_matrix(nw)
create_module_from_association_matrix(assoc_mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.