Skip to contents

Node names to node coordinates in a unit circle

Usage

toNodes(nodeNames)

Arguments

nodeNames

character vector of nodes to be arranged in a unit circle

Value

data frame with columns x and y giving the coordinates of the nodes arranged in a circle. The row names represent the node names.

Examples

nodes <- toNodes(LETTERS)

plot(nodes)
text(nodes, labels = row.names(nodes), adj = c(0, 0))