cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
mistermister
Level I

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
Level I

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. 

Recommended Articles