I am creating heatmaps using the pheatmap()
function using the following code:
library(pheatmap)
pheatmap((data_matrix[,1:11]), cluster_rows = F, cluster_cols = F, scale="none",
show_rownames=F, treeheight_row = F,
color=colorRampPalette(rev(c("red","white")))(50),
main="values", cex.main=1.2)
I would like to add text and lines at some positions to indicate groups and percentages.
abline()
and text()
don't work and with overplotting I was not successful so far.
What is the best way to do that?
Thanks, Philipp