powered by
layoutGrid produces a grid layout of any number of nodes.
layoutGrid
layoutGrid(N,string,name=NULL,byrow=FALSE)
This function returns the input data frame of nodes with the resulting layout applied.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
a data frame of nodes.
a character vector specifing grouped nodes.
name of column with node names.
logical. If 'FALSE' (the default) the layout is filled by columns, otherwise the layout is filled by rows.
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)
Run the code above in your browser using DataLab