powered by
Places the nodes of a graph according to a specified layout.
placeNodes(graph, nrow, ncol, byrow = TRUE, topdown = TRUE, force = FALSE)
The graph with nodes placed according to the specified layout.
A graph of class graphMCP or class entangledMCP.
graphMCP
entangledMCP
The desired number of rows.
The desired number of columns.
Logical whether the graph is filled by rows (otherwise by columns).
Logical whether the rows are filled top-down or bottom-up.
Logical whether a graph that has already a layout should be given the specified new layout.
Kornelius Rohmeyer rohmeyer@small-projects.de
If one of nrow or ncol is not given, an attempt is made to infer it from the number of nodes of the graph and the other parameter. If neither is given, the graph is placed as a circle.
nrow
ncol
graph
graphMCP, entangledMCP
g <- matrix2graph(matrix(0, nrow=6, ncol=6)) g <- placeNodes(g, nrow=2, force=TRUE) if (FALSE) { graphGUI(g) }
Run the code above in your browser using DataLab