r - Is it possible to fix the color scale oh the heatmap - Stack Overflow

admin2025-04-17  2

I have created heatmap with a dataset where most of the data resies within values say 0.001 to 0.1 but there is one datpoint in a sample which has 0.3 and its skewing the whole heatmap. The whole heatmap looks blue except one gene. How to fix the scale here? Should I just remove that one gene?

pheatmap <- pheatmap(igv_dat_vusage_traspose_mat, main = "V Usage score ", 
                     fontsize_col = 7, fontsize_row = 5, 
                     width = 8, height = 12,  
                     cluster_rows = FALSE,
                     cluster_cols =FALSE,
                     scale ="none")

image

转载请注明原文地址:http://anycun.com/QandA/1744850608a88500.html