View source: R/color_functions.R
color_parentcluster | R Documentation |
Merges subcluster colors to a mixed color for parent
color_parentcluster(clusters, subclusters, subcluster_colors, mix = TRUE)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.