Learn R Programming

brainGraph (version 0.72.0)

color.vertices: Color graph vertices

Description

This function takes an integer vector (representing membership of a community or component) and creates a character vector of colors for each community/module, component, etc. This only assigns a color to groups with at least 2 members; isolated vertices will be colored 'gray'.

Usage

color.vertices(memb)

Arguments

memb
An integer vector representing membership of e.g. a community

Value

A character vector with length equal to the number of communities, lobes, components, etc.