grid.graph | R Documentation |
Take a description of the layout of a graph, as produced by the Rgraphviz package, and draw it.
grid.graph(rag, newpage = FALSE, nodesOnTop = TRUE)
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). |
Paul Murrell
graphviz
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.