AutoTation: Builds color annotations for pheatmap

View source: R/AutoTation.R

AutoTationR Documentation

Builds color annotations for pheatmap

Description

Builds color annotations for pheatmap

Usage

AutoTation(
  Design = NULL,
  VarIds = NULL,
  Colors = NULL,
  binary_var = c("white", "black")
)

Arguments

Design

Hotgenes object or a data.frame containing experimental design data

VarIds

Vector of Strings to select design variables. Default (NULL), returns

Colors

vector for desired colors

binary_var

vector for desired binary colors.

Value

List of colors matching design variables

Examples

Example_Hotgenes_dir<-system.file("extdata",
"Example_Hotgenes.Rdata",
package = "Hotgenes", mustWork = TRUE)
load(Example_Hotgenes_dir)
AutoTation(Example_Hotgenes, 
Colors=c("cyan", "magenta", "blue", "pink"),
binary_var=c("white", "black"))

Rvirgenslane/Hotgenes documentation built on June 15, 2024, 2:16 a.m.