color.vertices: Color graph vertices

Description Usage Arguments Value


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'.





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


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

Search within the brainGraph package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.