layout4bipartite {svs} | R Documentation |
A helper function for creating a layout matrix for a bipartite graph, based on the dimensions of its biadjacency matrix.
layout4bipartite(nrow, ncol, rowsLeft = TRUE)
layout4diagram(nrow, ncol, rowsLeft = TRUE)
nrow |
Numeric specifying the number of rows of the biadjacency matrix. |
ncol |
Numeric specifying the number of columns of the biadjacency matrix. |
rowsLeft |
Logical specifying whether the rows of the biadjacency matrix should appear to the left of the columns. |
This is essentially an alternative for layout_as_bipartite()
from the igraph package.
Bipartite graphs are typically represented by a biadjacency matrix, the dimensions of which can be used for constructing the layout.
In addition, the coordinates for the vertices are somewhat different from those in igraph.
A matrix.