Learn R Programming

gridGraphviz (version 0.1)

grid.graph: 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)

Arguments

rag
An Ragraph object (must be laid out).
newpage
Logical value indicating whether to draw the graph on a new page.

References

graphviz

Examples

Run this code
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)

Run the code above in your browser using DataLab