generate_colors: generate colors

View source: R/graph_visualization.R

generate_colorsR Documentation

generate colors

Description

given a bunch of items, generate a set of colors for either single node colorings or pie-chart annotations. Colors are generated using the hcl colorspace, and for n_color >= 5, the colors are re-ordered in an attempt to create the largest contrasts between colors, as they result from being picked on a circle in hcl space.

Usage

generate_colors(n_color)

Arguments

n_color

how many colors to generate


rmflight/categoryCompare2 documentation built on Dec. 18, 2024, 9:13 a.m.