Learn R Programming

sgraph (version 1.1.0)

get_color_map: Build a color map

Description

Build a color map

Usage

get_color_map(colors, palette = RColorBrewer::brewer.pal(8, "Dark2"))

Value

Data frame mapping group names to colors

Arguments

colors

Groups that will be assigned to colors

palette

Palette to use, typically a RColorBrewer palette