graphLayout | R Documentation |
This function will take an object of class Ragraph
and will
perform a libgraph layout on the graph locations.
graphLayout(graph, layoutType=graph@layoutType)
graph |
An object of type |
layoutType |
layout algorithm to use |
If the graph has already been laid out, this function merely returns its parameter. Otherwise, it will perform a libgraph layout and retrieve the appropriate location information.
A laid out object of type Ragraph
.
Jeff Gentry
agopen
V <- letters[1:10] M <- 1:4 g1 <- randomGraph(V, M, .2) z <- agopen(g1,"foo",layout=FALSE) x <- z a <- graphLayout(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.