layoutGrid: Produce a layout of any number of nodes.

layoutGridR Documentation

Produce a layout of any number of nodes.

Description

layoutGrid produces a grid layout of any number of nodes.

Usage

layoutGrid(N,string,name=NULL,byrow=FALSE)

Arguments

N

a data frame of nodes.

string

a character vector specifing grouped nodes.

name

name of column with node names.

byrow

logical. If 'FALSE' (the default) the layout is filled by columns, otherwise the layout is filled by rows.

Value

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

Author(s)

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

Examples

A <- data.frame(name=letters)

L <- layoutGrid(A,"a,b,c,d,e.f,g,h,i,j.k,l,m,n,o,p.q,r,s,t,u.v,w,x,y,z","name")

netCoin(A,layout=L)

netCoin documentation built on Oct. 18, 2024, 5:10 p.m.