grid.graph {gridGraphviz} | R Documentation |
Draw a Node-and-Edge Graph
Description
Take a description of the layout of a graph, as produced by the Rgraphviz package, and draw it.
Usage
grid.graph(rag, newpage = FALSE, nodesOnTop = TRUE)
Arguments
rag |
An Ragraph object (must be laid out). |
newpage |
Logical value indicating whether to draw the graph on a new page. |
nodesOnTop |
Logical value indicating whether nodes should be drawn after edges (or vice versa). |
Author(s)
Paul Murrell
References
graphviz
Examples
gnel <- new("graphNEL",
nodes=letters[1:3],
edgeL=list(a=list(edges=c("b", "c")),
b=list(),
c=list()),
edgemode="directed")
rag <- agopen(gnel, "")
grid.graph(rag)
[Package gridGraphviz version 0.3-1 Index]