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

View source: R/layouts.R

rd3_layoutCircleR Documentation

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)

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.

Value

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

Author(s)

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

Examples

A <- data.frame(name=letters)
L <- rd3_layoutCircle(A,name="name")
net <- network_rd3(A,layout=L)
## Not run: 
plot(net)

## End(Not run)

rD3plot documentation built on March 31, 2023, 7:15 p.m.