How to show rownames in densityheatmaps
0
0
Entering edit mode
Do it! ▴ 10
@do-it-23093
Last seen 4 days ago
Germany, München

Hello Dear Biocondactors,

I would like to ask if there is a possibility to put row names in the density heatmap (Complexheatmap package). I want to show which density curve is indicating which gene. Simulated data and the codes are below. Thank you!


set.seed(22)
li.A <- matrix(rnorm(50), nrow = 10)
rownames(li.A) <- LETTERS[1:10]
colnames(li.A) <- paste0("S_", ncol = 1:5)
library(ComplexHeatmap)
densityHeatmap(li.A)

ComplexHeatmap • 125 views