Description Usage Arguments Value Examples
Create a sigmajs
from an igraph
object.
1 | sg_from_igraph(sg, igraph, layout = NULL, sd = NULL)
|
sg |
An object of class |
igraph |
An object of class |
layout |
A matrix of coordinates. |
sd |
A SharedData of nodes. |
A modified version of the sg
object.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
data("lesmis_igraph")
layout <- igraph::layout_with_fr(lesmis_igraph)
sigmajs() %>%
sg_from_igraph(lesmis_igraph, layout) %>%
sg_settings(defaultNodeColor = "#000")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.