Description Usage Arguments Details Value Author(s) Examples
View source: R/create_graphs.R
Returns a graph object with vertices that meet certain criteria. By default, only vertices that meet these criteria for all input graphs will be retained.
make_intersection_brainGraph(..., subgraph, keep.all.vertices = FALSE)
Graph objects or lists of graph objects
Character string specifying an equation (logical condition) for the vertices to subset
Logical indicating whether to keep all vertices that
meet the criteria in at least 1 input graph. Default:
If no vertices meet criteria for all input graphs, then an
graph object with 0 vertices is returned. If
this is essentially performing a union of vertex sets that meet the
criteria. In any case, the return graph will have 0 edges.
igraph graph object
Christopher G. Watson, firstname.lastname@example.org
1 2 3 4 5 6 7 8 9 10 11 12
## Not run: res.mtpc <- mtpc(g, covars, ...) g.mtpc <- make_glm_brainGraph(res.mtpc, atlas) ## All vertices with a significant MTPC result for all contrasts: g.mtpc.int <- make_intersection_brainGraph(g.mtpc, subgraph='sig == 1') ## Return graphs with vertices with degree > 0 for each group separately tapply(g.list, groups(g.list), make_intersection_brainGraph, subgraph='degree > 0') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.