dendrogram_color_palette: Dendrogram color palette

View source: R/dendrogram_color_palette.R

dendrogram_color_paletteR Documentation

Dendrogram color palette

Description

This function creates the color palette used in the dendrogram plotter

Usage

dendrogram_color_palette(col, dendrogram_info)

Arguments

col

string object representing color of the label

dendrogram_info

dendrogram_ends object

Value

annotation_color vector of colors corresponding to col variable

Examples

library(scran)
se <- mockSCE()
process_dendro <- BatchQC::process_dendrogram(se, "counts")
dendrogram_ends <- process_dendro$dendrogram_ends
col <- process_dendro$condition_var
dendro_colors <- dendrogram_color_palette(col = "Treatment",
                                    dendrogram_info = dendrogram_ends)
dendro_colors


compbiomed/BatchQC documentation built on Nov. 16, 2024, 5:47 a.m.