cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
mistermister
New Member

How can I apply two gradients to a heat map based on a categorical variable?

Hi! I am trying to make a heat map of a continuous function for 8 different trials to visualize variability between the trials. Within each trial, there are 2 categorical variables, SS and DS. I would like to make a heat map with these values (see image), but I am unsure about how to create two different gradients. I would like to make the gradient for SS in shades of blue, but the gradient for DS samples in shades of orange. Obviously, I can split the data and make two separate graphs, but I want to do this on the same plot. Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How can I apply two gradients to a heat map based on a categorical variable?

At least if you have two separate Y-axis you can do this

jthi_0-1731433470782.png

Right click on each legend and change the coloring of Gradient

jthi_1-1731433497723.png

 

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: How can I apply two gradients to a heat map based on a categorical variable?

At least if you have two separate Y-axis you can do this

jthi_0-1731433470782.png

Right click on each legend and change the coloring of Gradient

jthi_1-1731433497723.png

 

-Jarmo
mistermister
New Member

Re: How can I apply two gradients to a heat map based on a categorical variable?

Thanks! This seems to work well. I hadn't thought to split it that way but it gets the job done.