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
hamza-moussa
Level II

Ternary plot (with more than three components)

Hi, how can I visualize aTernary plot (with more than three components) using color gradients  to show the variation of the response

1 ACCEPTED SOLUTION

Accepted Solutions
Victor_G
Super User

Re: Ternary plot (with more than three components)

Hi @hamza-moussa,

 

Welcome in the Community !

 

To visualize the variation of the (predicted) response in regards to the mixture factors, you have to model the response and save the Prediction Formula (from the "Fit Model" window, click on the red triangle, "Save Columns", "Prediction Formula") :

Victor_G_2-1699177848772.png

 

Then, in the menu "Graph", use the "Ternary plot" option, and specify your mixture factors as "X, plotting" and your prediction formula for your response as "Contour Formula" :

Victor_G_3-1699177926670.png

You'll get to the ternary plot, and from there, you can click on the red triangle and customize the graph :

Victor_G_4-1699177959920.png

In this example, I changed the color theme to a chromatic red-orange/yellow-green them, and choose the option "Contour Fill", "Fill Above". I now have this graph that should be similar to what you are expecting :

Victor_G_5-1699178219397.png

You can also change the different levels/values for the prediction formula if you want to change the space between each individual levels.

The example is "Elongation of Yarn", from https://online.stat.psu.edu/stat503/lesson/11/11.3/11.3.3

 

If you have more than 3 factors, no problem, JMP will create a grid showing each time 2 mixture factors and the last factor will be the sum of the remaining mixture factors :

 

Ternary4mixtures.jpg

I attached the datatable with the model script, prediction formula, and the ternary plot script so that you can have a look at it.

I hope this example will help you,

 

Victor GUILLER
L'Oréal Data & Analytics

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)

View solution in original post

5 REPLIES 5
Victor_G
Super User

Re: Ternary plot (with more than three components)

Hi @hamza-moussa,

 

Welcome in the Community !

 

To visualize the variation of the (predicted) response in regards to the mixture factors, you have to model the response and save the Prediction Formula (from the "Fit Model" window, click on the red triangle, "Save Columns", "Prediction Formula") :

Victor_G_2-1699177848772.png

 

Then, in the menu "Graph", use the "Ternary plot" option, and specify your mixture factors as "X, plotting" and your prediction formula for your response as "Contour Formula" :

Victor_G_3-1699177926670.png

You'll get to the ternary plot, and from there, you can click on the red triangle and customize the graph :

Victor_G_4-1699177959920.png

In this example, I changed the color theme to a chromatic red-orange/yellow-green them, and choose the option "Contour Fill", "Fill Above". I now have this graph that should be similar to what you are expecting :

Victor_G_5-1699178219397.png

You can also change the different levels/values for the prediction formula if you want to change the space between each individual levels.

The example is "Elongation of Yarn", from https://online.stat.psu.edu/stat503/lesson/11/11.3/11.3.3

 

If you have more than 3 factors, no problem, JMP will create a grid showing each time 2 mixture factors and the last factor will be the sum of the remaining mixture factors :

 

Ternary4mixtures.jpg

I attached the datatable with the model script, prediction formula, and the ternary plot script so that you can have a look at it.

I hope this example will help you,

 

Victor GUILLER
L'Oréal Data & Analytics

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)
hamza-moussa
Level II

Re: Ternary plot (with more than three components)

Thank you so much Mr. @Victor_G 

hamza-moussa
Level II

Re: Ternary plot (with more than three components)

can we do the same thing for Mixture profiler ?

louv
Staff (Retired)

Re: Ternary plot (with more than three components)

Yes the Mixture Profiler is the perfect solution to visualizing ternary plots interactively when there are more than 3 variables.

hamza-moussa
Level II

Re: Ternary plot (with more than three components)

Thank you @louv, can we make mixture profiler using gradient color ?