layoutCircle produces a circle layout of any number of nodes.

layoutCircle(N,nodes=seq_len(nrow(N)),deg=0,name=NULL)

Arguments

N

a data frame of nodes.

nodes

a vector specifing nodes.

deg

degrees to rotate.

name

name of column with node names.

Author

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Value

This function returns the input data frame of nodes with the resulting layout applied.

Examples

A <- data.frame(name=letters) L <- layoutCircle(A,name="name") netCoin(A,layout=L)
#> #> Nodes(26): #> name #> a #> b #> c #> d #> e #> f #> ... #>