annotationlist_builder: Create the annotation object for plotting in a heatmap

Description Usage Arguments Value Examples

View source: R/outlier_plotting_functions.R

Description

Create the annotation object for plotting in a heatmap

Usage

1
annotationlist_builder(metatable, customcolorlist = NULL)

Arguments

metatable

the metatable containing information for the columns

customcolorlist

DEFAULT: NULL, enter colorlist to manually set colors

Value

return the annotation object

Examples

1
2
3
4
5
6
metatable <- data.frame(row.names = c("samp1", "samp2", "samp3", "samp4"),
    A = c(rep("high", 2), rep("low", 2)), B = seq(1,7,2))
customcolorlist <- list(A = c("high" = "red", "low" = "blue"),
    B = circlize::colorRamp2(seq(-5, 5, length = 3),
    RColorBrewer::brewer.pal(3, "Reds")))
annotationlist_builder(metatable, customcolorlist)

blacksheepr documentation built on Nov. 8, 2020, 7:57 p.m.