Description Usage Arguments Value Author(s) References See Also Examples
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.
1 | 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.