| layout.grid {igraph} | R Documentation |
This layout places vertices on a rectangulat grid, in two or three dimensions.
layout.grid (graph, width = 0) layout.grid.3d (graph, width = 0, height = 0)
graph |
The input graph. |
width |
The number of vertices in a single row of the grid. If
this is zero or negative for |
height |
The number of vertices in a single column of the grid, for three dimensional layouts. If this is zero or negative, then it is determinted automatically. |
These functions place the vertices on a simple rectangular grid, one
after the other. If you want to change the order of the vertices, then
see the permute.vertices function.
A two-column matrix for layout.grid, a three-column matrix for
layout.grid.3d.
Tamas Nepusz ntamas@gmail.com
layout for other layout generators
g <- graph.lattice( c(3,3) ) layout.grid(g) g2 <- graph.lattice( c(3,3,3) ) layout.grid.3d(g2) ## Not run: plot(g, layout=layout.grid) rglplot(g, layout=layout.grid.3d) ## End(Not run)