Setting the color of specific cells in a heatmap that contains two types of data
Show older comments
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 Comments
dpb
on 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
on 26 Nov 2021
Accepted Answer
More Answers (1)
Categories
Find more on Color and Styling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

