Description Usage Arguments Value Examples
View source: R/outlier_plotting_functions.R
Create the annotation object for plotting in a heatmap
1 | 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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.