convert_annotations: convert annotation (data frame) and annotation_colors (a...

Description Usage Arguments Value

View source: R/aheatmap.R

Description

convert annotation (data frame) and annotation_colors (a list) to color matrix

Usage

1
convert_annotations(annotation, annotation_colors)

Arguments

annotation

a data frame of continuous or categorical variables

annotation_colors

a list of color pallete; for continuous variable, specify a vector of colors; for categorical or factor variable, speacify a named vector; for NA, the named vector should contain 'NA'

Value

a data frame of colors


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.