layout_components_qgraph | R Documentation |
Generate subgraphs and sublayouts from a graph for Mseek interactive view.
layout_components_qgraph(graph, layout, ...)
graph |
an igraph object, needs to have an "id" vertex property |
layout |
the layout function applied (from igraph or qgraph packages). Defaults to qgraph.layout.fruchtermanmeingold with some Mseek specific settings |
... |
arguments passed to layout (except if layout is qgraph.layout.fruchtermanreingold) |
Elements of the returned list
layout
merged coordinates of all subgraphs
subgraphs
result of decompose(graph)
sublayouts
list of layout coordinates for each subgraph
subedgelist
list of edgelists for each subgraph
a list of graph layouts, see details
## Not run: g <- igraph::erdos.renyi.game(30, 3/30) V(g)$id <- 1:30 l1 <- layout_components_qgraph(g, qgraph::qgraph.layout.fruchtermanreingold) l2 <- layout_components_qgraph(g, igraph::layout_with_kk) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.