[R] pheatmap breaks
Adrian Johnson
oriolebaltimore at gmail.com
Fri Aug 19 23:22:34 CEST 2016
Hi group:
I tried multiple times cannot understand the breaks to work for my heatmap.
I am using following way:
pheatmap(chxx,
cluster_cols=FALSE,
annotation_col=annotcols,
annotation_colors=anno_colors,
col=colorRampPalette(c("dark blue", "white", "#ff0000"))(34),
show_colnames=F)
> max(chxx)
[1] 4.421862
> min(chxx)
[1] -3.324021
I want to plot anything above 1.96 as red, anything below -1.96 as blue
1.195 as pink and 0 - 0.99 as gradient of white pink.
similarly, < -1.96 as blue, values greater than -1.96 less that -1
gets light blue and 0 to -0.99 get white gradient to blue.
there will be 7 breaks
< - 1.96--- - 1- -.99---- 0 ------0.99-1---1.96---->1.96
how can I define the breaks.
appreciate your help. Thanks in advance.
Adrian
More information about the R-help
mailing list