Learn R Programming

rD3plot (version 1.1.37)

rd3_layoutCircle: Produce a circle layout of any number of nodes.

Description

rd3_layoutCircle produces a circle layout of any number of nodes.

Usage

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

Value

‘rd3_layoutCircle’ produces a circle layout of any number of nodes.

Author

Modesto Escobar, Department of Sociology and Communication, University of Salamanca.

Arguments

N

a data frame of nodes.

nodes

a vector specifing the node names inclued in the layout calculation.

deg

rotation degrees.

name

column name with node names in the N data frame.

Examples

Run this code
A <- data.frame(name=letters)
L <- rd3_layoutCircle(A,name="name")
net <- network_rd3(A,layout=L)
if (FALSE) {
plot(net)
}

Run the code above in your browser using DataLab