Colors are nothing without properly labelling, and the difference between science and playing around is how you write them down. With that, legends are suppose to indicate the meaning of those pretty pretty colors on the plot. How you want to describe them, and how big you want the legends to appear through, its more of an art than a science.
Find the script here
https://github.com/brandonyph/Complex...
Find the website of the book here
https://jokergoo.github.io/ComplexHea...
Paper:
Gu, Z., Eils, R. and Schlesner, M., 2016. Complex heatmaps reveal patterns and correlations in multidimensional genomic data. Bioinformatics, 32(18), pp.2847-2849.
Email: [email protected]
Website: www.liquidbrain.org