powered by
Arrange nodes evenly spaced around a circle.
layout_circle(network, order = NULL, start_angle = pi/2, clockwise = TRUE)
Data frame with x, y coordinates.
A CographNetwork object.
Optional vector specifying node order (indices or labels).
Starting angle in radians (default: pi/2 for top).
Logical. Arrange nodes clockwise? Default TRUE.
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3) net <- CographNetwork$new(adj) coords <- layout_circle(net)
Run the code above in your browser using DataLab