makeAnnotationColors: Make color sets to use in heatmap annotation

View source: R/heatmap.R

makeAnnotationColorsR Documentation

Make color sets to use in heatmap annotation

Description

Given a data frame of experimental variables, generate sets of colors, one for each column, than can be used as the 'annotation_colors' argment to pheatmap(). Uses RColorBrewer.

Usage

makeAnnotationColors(sample_annotation)

Arguments

sample_annotation

A data frame with sample metadata

Value

output A list object with colors

Examples

colors <- makeAnnotationColors(sample_annotation)


pinin4fjords/shinyngs documentation built on June 29, 2024, 8:55 a.m.