[R] heatmap ploting

Jim Lemon drj|m|emon @end|ng |rom gm@||@com
Fri Nov 5 09:49:44 CET 2021

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:


The horizontal lengths of the stacked bars of the plot can then be
adjusted to the number of subjects in a given bin of log gene
expressions. A tricky plot, but it can be done in R.


On Fri, Nov 5, 2021 at 6:08 PM Stephen HonKit Wong <stephen66 using gmail.com> wrote:
> Dear Community,
> I have an example heatmap plot in this link
> <https://drive.google.com/file/d/15ePaR0gC2IKXm2gkeGylZ4vM_MEsWyW0/view?usp=sharing>
> 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 different cancer types with
> different numbers of patients. The heatmap value represents the expression
> value, such as FPKM, which can range from 0 to over several hundreds.
> Much thanks!
> Steve
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list