Learn R Programming

gridGraphviz (version 0.3-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, 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).

References

graphviz

Examples

Run this code
# NOT RUN {
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