powered by
rd3_layoutGrid produces a grid layout of any number of nodes.
rd3_layoutGrid
rd3_layoutGrid(N,string,name=NULL,byrow=FALSE)
‘rd3_layoutGrid’ produces a grid layout of any number of nodes.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca.
a data frame of nodes.
a character vector specifing grouped nodes.
column name with node names in the N data frame.
order nodes by row (default) or by columns (FALSE)
A <- data.frame(name=letters) L <- rd3_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") net <- network_rd3(A,layout=L) if (FALSE) { plot(net) }
Run the code above in your browser using DataLab