grid.graph: Draw a Node-and-Edge Graph

View source: R/graph.R

grid.graphR 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)

gridGraphviz documentation built on April 11, 2022, 1:06 a.m.