AutoTation: Builds color annotations for pheatmap

Description Usage Arguments Value Examples

View source: R/AutoTation.R

Description

Builds color annotations for pheatmap

Usage

1
2
3
4
5
6
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

1
2
3
4
5
6
7
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 Aug. 22, 2020, 2:11 a.m.