agwrite | R Documentation |
These functions will write an Ragraph
object to or from a file.
agwrite(graph, filename)
agread(filename, layoutType="dot", layout=TRUE)
graph |
An object of class |
filename |
The input or output filename |
layoutType |
character(1) specifying the format of the input
file. must be one of |
layout |
logical(1) indicating whether |
These function are wrappers to agwrite() and agread() calls in Graphviz.
Jeff Gentry
agopen
, agread
V <- letters[1:10]
M <- 1:4
g1 <- randomGraph(V, M, .2)
z <- agopen(g1, "foo", layout=FALSE) ## default layoutType 'dot'
file <- tempfile()
agwrite(z, file)
## supported input types
graphvizCapabilities()$layoutTypes
g2 <- agread(file, layout=TRUE)
if (interactive())
plot(g2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.