rd3_layoutGrid | R Documentation |
rd3_layoutGrid
produces a grid layout of any number of nodes.
rd3_layoutGrid(N,string,name=NULL,byrow=FALSE)
N |
a data frame of nodes. |
string |
a character vector specifing grouped nodes. |
name |
column name with node names in the N data frame. |
byrow |
order nodes by row (default) or by columns (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(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)
## Not run:
plot(net)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.