Entering edit mode
21 months ago
sansan96
▴
130
Hello everyone,
I'm trying to make a heatmap but I get the following error, can you help me?
topVarGenes <- head(order(rowVars(assay(rld)), decreasing = TRUE), 20)
mat <- assay(rld)[ topVarGenes, ]
mat <- mat - rowMeans(mat)
anno <- as.data.frame(colData(rld)[, c("Condition")])
pheatmap(mat, annotation_col = anno)
Error in check.length("fill") : 'gpar' element 'fill' must not be length 0
Thanks so much, it worked for me.