color_parentcluster: Color parent clusters by children

View source: R/color_functions.R

color_parentclusterR Documentation

Color parent clusters by children

Description

Merges subcluster colors to a mixed color for parent

Usage

color_parentcluster(clusters, subclusters, subcluster_colors, mix = TRUE)

Arguments

clusters

vector of cluster annotations with length equal to subclusters

subclusters

vector of subclusters

subcluster_colors

Named vector of colors for each subcluster or vector of colors of equal length as subclusters

mix

Should colors of the two largest subclusters be mixed (by DescTools::MixColor)? If FALSE, the color from the largest subcluster will be used


Terkild/scutility documentation built on Jan. 16, 2025, 5:28 p.m.