convert.to.colors: Converts a data frame of factors into a list of numerical...

View source: R/convert.to.colors.R

convert.to.colorsR Documentation

Converts a data frame of factors into a list of numerical vectors representing colors.

Description

This function converts the input data frame to a list of numerical vectors that can be input into the aheatmap() function for column and row annotations.

Usage

convert.to.colors(annot.df)

Arguments

annot.df

A data frame where each column is a factor.

Value

A list of vectors with numbers representing colors, one list item per column in the input data frame.

Author(s)

Amy L. Olex alolex@vcu.edu

Examples

my_colors <- convert.to.colors(annotation.df)

AmyOlex/RNASeqBits documentation built on Jan. 26, 2024, 7:08 a.m.