Learn R Programming

cograph (version 1.5.2)

tna_color_palette: Generate TNA-style Color Palette for Nodes

Description

Internal function that generates appropriate qualitative colors based on the number of states, following TNA's color palette logic.

Usage

tna_color_palette(n_states)

Value

Character vector of colors.

Arguments

n_states

Number of states (nodes) in the network.