graphLayout {hyperdraw} | R Documentation |
This function is designed to layout a graph using
the Rgraphviz package.
The hyperdraw package makes this a generic function with a method for
graphBPH
objects.
The function of the same name in the Rgraphviz
package is used as a method for Ragraph
objects.
graphLayout(graph, layoutType, ...)
graph |
An |
layoutType |
The layout method (e.g., |
... |
These arguments will be passed to the |
An RagraphBPH
object.
Paul Murrell
Gansner, E.R. and and North, S.C. (1999) An open graph visualization system and its applications to software engineering, Software - Practice and Experience, 30:1203–1233.
Gentry, J. and Long, L. and Gentleman, R. and Falcon, S. and Hahne, F. and Sarkar, D. and Hansen, K. Rgraphviz: Provides plotting capabilities for R graph objects.
nodes <- c(LETTERS[1:5], paste("R", 1:3, sep="")) testgnel <- new("graphNEL", nodes=nodes, edgeL=list( A=list(edges=c("R1", "R2")), B=list(edges="R2"), C=list(), D=list(edges="R3"), E=list(), R1=list(edges="B"), R2=list(edges=c("C", "D")), R3=list(edges="E")), edgemode="directed") testbph <- new("graphBPH", testgnel, "^R") testrabph <- graphLayout(testbph)