View source: R/class-network.R
| get_nodes | R Documentation |
Extracts the nodes data frame from a cograph_network object.
get_nodes(x)
x |
A cograph_network object. |
A data frame with columns: id, label, name, x, y (and possibly others).
as_cograph, n_nodes, get_edges
mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
get_nodes(net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.