layout4bipartite {svs} | R Documentation |
Create a Layout Matrix for a Bipartite Graph
Description
A helper function for creating a layout matrix for a bipartite graph, based on the dimensions of its biadjacency matrix.
Usage
layout4bipartite(nrow, ncol, rowsLeft = TRUE)
layout4diagram(nrow, ncol, rowsLeft = TRUE)
Arguments
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. |
Details
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.
Value
A matrix.
[Package svs version 3.1.1 Index]