annotationlist_builder {blacksheepr} | R Documentation

## Create the annotation object for plotting in a heatmap

### Description

Create the annotation object for plotting in a heatmap

### Usage

    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

    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)

[Package blacksheepr version 1.8.0 Index]