Using R package pheatmap to draw heatmaps. Is there a way to assign a color to NAs in the input matrix? It seems NA gets colored in white by default. E.g.:
libra
If you want the NAs to be grey, you can simply force the "NA" as double.
m[is.na(m)] <- as.double("NA") pheatmap(m, cluster_rows=F, cluster_cols=F)