Re: [R] heatmap ploting

2021-11-05 Thread Jim Lemon
Hi Steve, That plot looks to me as though a value-to-color transformation is performed on the logarithm of gene expression. The scale bar can be roughly reproduced like this: library(plotrix) plot(0,xlim=c(0,3)) gradient.rect(0,-0.1,3,0.1, col=color.scale(seq(0,3,0.1), c(0.7,1,1,1,0.7,0.2),

[R] heatmap ploting

2021-11-05 Thread Stephen HonKit Wong
Dear Community, I have an example heatmap plot in this link which was generated by java I believe, I want to make a similar plot in R. Any clues on how to do it? Thanks. The column is a gene, and the rows are