View source: R/dendrogram_color_palette.R
dendrogram_color_palette | R Documentation |
This function creates the color palette used in the dendrogram plotter
dendrogram_color_palette(col, dendrogram_info)
col |
string object representing color of the label |
dendrogram_info |
dendrogram_ends object |
annotation_color vector of colors corresponding to col variable
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.