Setting the color of specific cells in a heatmap that contains two types of data
Ältere Kommentare anzeigen
Hi,
I created the array below in Excel, and it's perfect except that the color bar is ugly and not detailed enough.

So I've been trying to recreate it in MATLAB using the heatmap function and this is what I produced so far.

Which is almost perfect, but I need to set a separate colormap, or a separate condition for the p-value cells. I want only cells with p-value of less than 0.05 to be colored while the rest is just white or black.
Some help with this would be great.
Thanks a lot.
2 Kommentare
dpb
am 26 Nov. 2021
Attach your code/data to create what you have as a starting point for those here..."help us help you"
Amin Kassab-Bachi
am 26 Nov. 2021
Akzeptierte Antwort
Weitere Antworten (1)
Kategorien
Mehr zu Color and Styling finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


