get_color_map {sgraph} | R Documentation |
Build a color map
get_color_map(colors, palette = RColorBrewer::brewer.pal(8, "Dark2"))
colors |
Groups that will be assigned to colors |
palette |
Palette to use, typically a RColorBrewer palette |
Data frame mapping group names to colors