View source: R/set_brainGraph_attributes.R
set_graph_colors | R Documentation |
set_graph_colors
takes an integer vector representing membership of
some grouping (e.g., a community or connected component) and creates a
character vector of colors for each grouping. Isolated vertices will be
colored gray. Edges are assigned the same color if connected to
vertices in the same group, and assigned gray otherwise.
set_graph_colors(g, name, memb)
g |
An |
name |
Character string of the name of the attribute to add |
memb |
An integer vector representing membership of e.g. a community |
The same graph with additional vertex and edge attributes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.