pheatmap: Color for NA

前端 未结 5 1704
梦谈多话
梦谈多话 2021-02-05 17:41

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         


        
5条回答
  •  星月不相逢
    2021-02-05 18:23

    Actually, the question is easy now. The current pheatmap function has incorporated a parameter for assigning a color to "NA", na_col. Example:

    na_col = "grey90"
    

提交回复
热议问题