Setting the color of specific cells in a heatmap that contains two types of data
Mostrar comentarios más antiguos
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 comentarios
dpb
el 26 de Nov. de 2021
Attach your code/data to create what you have as a starting point for those here..."help us help you"
Amin Kassab-Bachi
el 26 de Nov. de 2021
Respuesta aceptada
Más respuestas (1)
Categorías
Más información sobre Color and Styling en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


