Combine pheatmap
Talk is cheap, this is code:
library(grid)
library(gridExtra)
library(pheatmap)
library(ggplot2)
library(colormap)
=names(colormaps)
items=list()
plot_listfor (a in items[1:8]){
= pheatmap(volcano,
xcluster_rows = F,
cluster_cols = F,
main = a,
height = 3,
width = 3,
border_color = NA,
color = colormap_pal(colormap = colormaps[[a]])(100),silent = T)
= x[[4]] ##to save each plot into a list. note the [[4]]
plot_list[[a]]
}
::plot_grid(plotlist = plot_list[1:8],ncol = 2,nrow = 4) cowplot
test equation: