| random_network | R Documentation |
Creates an unweighted 'network' object containing randomly generated modules.
random_network(p, n_modules = NULL, ...)
p |
The number of nodes in the network. If | |||||||||||||||||||||||
n_modules |
The number of modules to include in the network. If
| |||||||||||||||||||||||
... |
Arguments to be passed to other methods. Possible arguments include:
|
An unweighted network object.
grimes21SeqNet
# Create a random network of 10 nodes
nw <- random_network(10)
nw
# Add a random weight to each connection.
nw <- gen_partial_correlations(nw)
# Plot the network
plot(nw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.