Open Zefeng-Wu opened 7 years ago
The above code is for the basic plot not for grid plotting. I think.
Just grab the output tables as pheatmap(..., silent = TRUE)$gtable
, and then combine the GROBs with the arrangeGrob
function from the gridExtra
package.
See: https://cran.r-project.org/web/packages/gridExtra/vignettes/arrangeGrob.html
What @caravagn explained is very correct. If you are looking for a code snippet, checkout my answer in this Stackoverflow from back in January 2018:
how to make multiple pheatmaps in a same figure? The plot layout code "par(mfrow=c(m,n))"doesn't work!