View source: R/contract_brainGraph.R
contract_brainGraph | R Documentation |
Create a new graph after merging vertices within specified groups. By default, groups are brain lobe and hemisphere membership.
contract_brainGraph(g, vgroup = "lobe.hemi")
g |
A |
vgroup |
Character string; the name of the vertex attribute to use when
contracting the graph. Default: |
The size
vertex-level attribute of the resultant graph is equal to the
number of vertices in each group. The x-, y-, and z-coordinates of the new
graph are equal to the mean coordinates of the vertices per group.
The new edge weights are equal to the number of inter-group connections of
the original graph.
A new brainGraph
graph object with vertex-level attributes
representing the mean spatial coordinates, and vertex- and edge-level
attributes of color names
Christopher G. Watson, cgwatson@bu.edu
contract
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.