View source: R/layout-circle.R
| layout_circle | R Documentation |
Arrange nodes evenly spaced around a circle.
layout_circle(network, order = NULL, start_angle = pi/2, clockwise = TRUE, ...)
network |
A CographNetwork object. |
order |
Optional vector specifying node order (indices or labels). |
start_angle |
Starting angle in radians (default: pi/2 for top). |
clockwise |
Logical. Arrange nodes clockwise? Default TRUE. |
... |
Additional arguments (ignored). |
Data frame with x, y coordinates.
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- CographNetwork$new(adj)
coords <- layout_circle(net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.