cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-312903%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E9%9B%A2%E6%95%A3%E5%9C%B0%E7%82%BA%E5%96%AE%E5%85%83%E6%A0%BC%E5%92%8C%E9%BB%9E%E8%91%97%E8%89%B2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-312903%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E6%9C%89%E4%B8%80%E5%88%97%E5%8C%85%E5%90%AB%E9%80%A3%E7%BA%8C%E6%95%B8%E6%93%9A%EF%BC%88%E6%AF%AB%E7%B1%B3%EF%BC%89%EF%BC%8C%E6%88%91%E6%83%B3%E6%A0%B9%E6%93%9A%E8%A6%8F%E6%A0%BC%E5%92%8C%E8%AD%A6%E5%91%8A%E9%99%90%E5%88%B6%E7%82%BA%E5%96%AE%E5%85%83%E6%A0%BC%E8%91%97%E8%89%B2%E3%80%82%20%E8%91%97%E8%89%B2%E6%87%89%E8%A9%B2%E6%98%AF%E9%9B%A2%E6%95%A3%E7%9A%84%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E9%80%A3%E7%BA%8C%E7%9A%84%E3%80%82%20%E4%BD%BF%E7%94%A8%E5%9C%96%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E5%89%B5%E5%BB%BA%E7%B9%AA%E5%9C%96%E6%99%82%EF%BC%8C%E9%BB%9E%E7%9A%84%E9%A1%8F%E8%89%B2%E6%87%89%E8%88%87%E5%96%AE%E5%85%83%E6%A0%BC%E7%9A%84%E9%A1%8F%E8%89%B2%E7%9B%B8%E5%90%8C%E3%80%82%3C%2FP%3E%3CP%3E%E9%80%99%E6%98%AF%E6%89%80%E9%9C%80%E7%9A%84%E9%A1%8F%E8%89%B2%EF%BC%9A%3C%2FP%3E%3CP%3E%26lt%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%E8%89%B2%EF%BC%8C%E7%B5%90%E6%9E%9C%E9%A1%8F%E8%89%B2%E4%B8%8D%E5%86%8D%E9%81%A9%E5%90%88%E5%80%BC%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%84%9F%E8%AC%9D%E6%82%A8%E6%8F%90%E4%BE%9B%E8%A7%A3%E6%B1%BA%E6%96%B9%E6%A1%88%E7%9A%84%E4%BB%BB%E4%BD%95%E5%BB%BA%E8%AD%B0%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-312903%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E5%A4%A7%E8%A6%8F%E6%A8%A1%E5%AE%9A%E5%88%B6%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-312927%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%9B%A2%E6%95%A3%E5%9C%B0%E7%82%BA%E5%96%AE%E5%85%83%E6%A0%BC%E5%92%8C%E9%BB%9E%E8%91%97%E8%89%B2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-312927%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%9C%E7%82%BA%E9%87%9D%E5%B0%8D%20JMP%20%E5%A2%9E%E5%BC%B7%E8%AB%8B%E6%B1%82%E7%9A%84%E5%96%AE%E7%8D%A8%E8%A9%95%E8%AB%96%20-%20%E5%A6%82%E6%9E%9C%E8%83%BD%E5%A4%A0%E6%93%81%E6%9C%89%E6%A0%B9%E6%93%9A%E8%A6%8F%E7%AF%84%E7%B4%9A%E5%88%A5%E8%80%8C%E4%B8%8D%E6%98%AF%E6%95%B8%E6%93%9A%E8%8C%83%E5%9C%8D%E9%80%B2%E8%A1%8C%E6%A0%A1%E6%BA%96%E7%9A%84%E9%80%A3%E7%BA%8C%E9%A1%8F%E8%89%B2%E6%BC%B8%E8%AE%8A%EF%BC%8C%E9%82%A3%E7%9C%9F%E6%98%AF%E5%A4%AA%E5%A5%BD%E4%BA%86%E3%80%82%E6%88%91%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E8%85%B3%E6%9C%AC%E4%BE%86%E5%AF%A6%E7%8F%BE%E9%80%99%E4%B8%80%E9%BB%9E%EF%BC%8C%E4%BD%86%E5%8D%B3%E4%BE%BF%E5%A6%82%E6%AD%A4%EF%BC%8C%E9%80%99%E4%B9%9F%E6%98%AF%E4%B8%80%E9%A0%85%E8%89%B1%E8%8B%A6%E7%9A%84%E5%B7%A5%E4%BD%9C%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-312925%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%9B%A2%E6%95%A3%E5%9C%B0%E7%82%BA%E5%96%AE%E5%85%83%E6%A0%BC%E5%92%8C%E9%BB%9E%E8%91%97%E8%89%B2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-312925%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E8%AA%8D%E7%82%BA%E9%80%99%E6%98%AF%E4%B8%80%E4%BB%B6%E5%BE%88%E5%B8%B8%E8%A6%8B%E7%9A%84%E4%BA%8B%E6%83%85%EF%BC%8C%E4%B8%A6%E4%B8%94%E5%8F%AF%E8%83%BD%E6%9C%89%E4%B8%8D%E6%AD%A2%E4%B8%80%E7%A8%AE%E6%96%B9%E6%B3%95%E5%8F%AF%E4%BB%A5%E5%AF%A6%E7%8F%BE%E5%AE%83%E3%80%82%20%E5%95%8F%E9%A1%8C%E6%98%AF%20JMP%20%E5%B8%8C%E6%9C%9B%E5%B0%8D%E9%80%A3%E7%BA%8C%E6%95%B8%E6%93%9A%E4%BD%BF%E7%94%A8%E6%BC%B8%E8%AE%8A%EF%BC%8C%E8%80%8C%E6%88%91%E5%80%91%E9%9C%80%E8%A6%81%E9%9B%A2%E6%95%A3%E9%A1%8F%E8%89%B2%E7%B7%A8%E7%A2%BC%E3%80%82%E8%A7%A3%E6%B1%BA%E6%96%B9%E6%A1%88%E6%98%AF%E5%89%B5%E5%BB%BA%E4%B8%80%E5%80%8B%E5%8F%AF%E4%BB%A5%E5%AE%B9%E7%B4%8D%E9%80%99%E4%BA%9B%E9%A1%8F%E8%89%B2%E7%9A%84%E9%9B%A2%E6%95%A3%E8%AE%8A%E9%87%8F%20-%20%E7%84%B6%E5%BE%8C%E5%9C%A8%E5%9C%96%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E4%BD%BF%E7%94%A8%E9%80%99%E5%80%8B%E6%96%B0%E8%AE%8A%E9%87%8F%E4%BD%9C%E7%82%BA%E2%80%9C%E9%A1%8F%E8%89%B2%E2%80%9D%E8%AE%8A%E9%87%8F%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E7%8B%80%E6%85%8B%E6%AC%84%E4%B8%8B%E6%96%B9%E5%B0%87%E9%AB%98%E5%BA%A6%E8%BD%89%E6%8F%9B%E7%82%BA%E5%8F%AF%E7%94%A8%E6%96%BC%E9%A1%8F%E8%89%B2%E7%9A%84%E9%9B%A2%E6%95%A3%E7%B4%9A%E5%88%A5%EF%BC%9A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20640px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20640px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20640px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F26982i3488D7D503AB8D70%2Fimage-dimensions%2F640x475%3Fv%3Dv2%22%20width%3D%22640%22%20height%3D%22475%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E9%80%99%E6%98%AF%E7%8B%80%E6%85%8B%E5%88%97%E7%9A%84%E5%85%AC%E5%BC%8F%EF%BC%9A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20635px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20635px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20635px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F26983i4B97397CB7C8FB61%2Fimage-dimensions%2F635x165%3Fv%3Dv2%22%20width%3D%22635%22%20height%3D%22165%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E6%88%91%E9%99%84%E4%B8%8A%E4%BA%86%E4%B8%80%E5%80%8B%E7%A4%BA%E4%BE%8B%E8%A1%A8%E3%80%82%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorDavid_Burnham_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
JWi
JWi
Level II

Color cells and points discretely

I have a column with continuous data (millimeters) and I would like to color the cells according to spec and warn limits. The coloring should be discrete, not continuous. When creating a plot using Graph Builder, the points should be colored in the same way as the cells.

This is the desired coloring:

< -4: red

>= -4 and <-2: yellow

>=-2 and <=2: green

>2 and <=5: yellow

>5: red

 

I tried using the column property "color gradient", but on the one hand it seems strange to use a color gradient to achieve discrete coloring, and on the other hand the scaling of the gradient adapts to the values in the column as soon a s I try using the column for coloring in Graph Builder, and in consequence the colors don't fit the values any more.

 

Thanks for any suggestion for a solution.

1 ACCEPTED SOLUTION

Accepted Solutions
David_Burnham
Super User (Alumni)

Re: Color cells and points discretely

I think this is quite a common thing to want to do, and there is probably more than one way to approach it. The problem is that JMP wants to use gradients for continuous data whereas we want discrete colour coding.  The solution is to create a discrete variable that can accommodate these colours - then in graph builder you use this new variable as the 'colour' variable.

 

Below the status column converts height into discrete levels that can be used for colour:

 

image.png

 

And here is the formula for the status column:

 

image.png

 

I've attached a sample table.  

 

 

 

 

-Dave

View solution in original post

2 REPLIES 2
David_Burnham
Super User (Alumni)

Re: Color cells and points discretely

I think this is quite a common thing to want to do, and there is probably more than one way to approach it. The problem is that JMP wants to use gradients for continuous data whereas we want discrete colour coding.  The solution is to create a discrete variable that can accommodate these colours - then in graph builder you use this new variable as the 'colour' variable.

 

Below the status column converts height into discrete levels that can be used for colour:

 

image.png

 

And here is the formula for the status column:

 

image.png

 

I've attached a sample table.  

 

 

 

 

-Dave
David_Burnham
Super User (Alumni)

Re: Color cells and points discretely

As a separate comment aimed at JMP enhancement requests - it would be really nice to be able to have a continuous colour gradient that is calibrated against specification levels rather than the range of the data.  I can achieve this using scripting, but even then it is hard work.

-Dave