toDotR-methods {graph} | R Documentation |
There are two basic methods of generating
dot (http://www.graphviz.org) language serializations
of R graph-class
structures. First,
using the toDot
methods of the
Rgraphviz package, the native graphviz agraph-associated methods can be
employed to create the dot serialization.
Second, with the methods described here, R functions can
be used to perform the serialization directly from
the graph data structure, without Rgraphviz.
example(randomGraph) tmp <- tempfile() toDotR( g1, tmp ) readLines(tmp) unlink(tmp)