layout_components_qgraph: layout_components_qgraph

layout_components_qgraphR Documentation

layout_components_qgraph

Description

Generate subgraphs and sublayouts from a graph for Mseek interactive view.

Usage

layout_components_qgraph(graph, layout, ...)

Arguments

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)

Details

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

Value

a list of graph layouts, see details

Examples

## 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)


mjhelf/Metaboseek documentation built on April 23, 2022, 12:09 p.m.