Learn R Programming

netCoin (version 2.1.0)

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

Description

layoutCircle produces a circle layout of any number of nodes.

Usage

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

Value

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

Author

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

Arguments

N

a data frame of nodes.

nodes

a vector specifing nodes.

deg

degrees to rotate.

name

name of column with node names.

Examples

Run this code
A <- data.frame(name=letters)

L <- layoutCircle(A,name="name")

netCoin(A,layout=L)

Run the code above in your browser using DataLab