View source: R/outlier_plotting_functions.R
annotationlist_builder | R Documentation |
Create the annotation object for plotting in a heatmap
annotationlist_builder(metatable, customcolorlist = NULL)
metatable |
the metatable containing information for the columns |
customcolorlist |
DEFAULT: NULL, enter colorlist to manually set colors |
return the annotation object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.