Description Usage Arguments Details Examples
Layout the graph using an igraph layout function.
This function only works with the graph was initialised
with an object of class igraph.
1 | layout_igraph(g, ..., method = igraph::layout_nicely)
|
g |
An object of class |
... |
Any options to pass to the |
method |
An igraph layout function to compute the nodes and edges (source and target) position on the canvas. |
The function runs the method to obtain the x
and y coordinates. These are added to the nodes
data.frame (extracted from initial graph) and to the edges
data.frame, as x and y nested columns, e.g.:
c(source_x, target_x). These x and y coordinates
can be used in asp() (see example).
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.