View source: R/class-network.R
| get_groups | R Documentation |
Extracts the node groupings from a cograph_network object.
get_groups(x)
x |
A cograph_network object. |
A data frame with node groupings, or NULL if not set. The data frame has columns:
node: Node labels
One of layer, cluster, or group: Group assignment
set_groups, splot
mat <- matrix(runif(25), 5, 5)
rownames(mat) <- colnames(mat) <- LETTERS[1:5]
net <- as_cograph(mat)
net <- set_groups(net, list(G1 = c("A", "B"), G2 = c("C", "D", "E")))
get_groups(net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.