Question: Pheatmap: how to use breaks for pheatmap
0
gravatar for jarod_v6@libero.it
2.8 years ago by
Italy
jarod_v6@libero.it40 wrote:

I would like to pheatmap but I  have some problems on colors.

 

quantile(mat)
        0%        25%        50%        75%       100%
-2.9058611 -0.4772665 -0.1042894  0.3581126  6.3077411 
mypalette3<-colorRampPalette(c("red","blue"))(n=30)
col_breaks=c(seq(-1,0.09,length = 20),seq(2,10,length= 20))
pheatmap(mat,method="complete",main = "Differential genes padj < 0.1 ",color=mypalette3, show_rownames = F,annotation_legend = FALSE, legend=T, cluster_cols=TRUE,cexRow=0.55,cluster_rows = T,breaks = col_breaks)

Why red come also for positive numbers?

https://postimg.org/image/el1ed1esf/

heatmap pheatmap • 2.2k views
ADD COMMENTlink written 2.8 years ago by jarod_v6@libero.it40
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 121 users visited in the last hour