cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

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

RBG Color in Graph Builder

I want to use a column in a Graph Builder plot to set the color in a heatmap—not with a color scale, but with an RGB value I previously extracted from an image.

Is there a possibility to store a RGB color in a column - and then use it in Graph Builder?

4 REPLIES 4
hogi
Level XIII

Re: RBG Color in Graph Builder

if this is not possible, some workarounds :

  1. use value color,
    a) use value = row() - and use value color to map the rows to color
    b) save "color" with an encoding - and use value color to map the encoded color to the actual color

  2. is it possible to use the color from row state for a Heatmap Plot?
jthi
Super User

Re: RBG Color in Graph Builder

You can store the value as row state using Color State() and RGB Color(), but no idea about using that column directly in graph builder. 

 

-Jarmo
Victor_G
Super User

Re: RBG Color in Graph Builder

Hi @hogi,

I have used a previous solution from @txnelson that enable me to use HEX values from one column and get automatically row colors based on these values :

Return a JMP Color Value from a Hex Color Code 

For RGB values, there seems to be some solutions existing:

using RGB values in JSL scripts instead of color name or whatever this (--16741343) is 
Extracting colors from a #rrggbb column 


Hope these answers may help you,

Victor GUILLER

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

Re: RBG Color in Graph Builder

Hi  @Victor_G , thank you for the input.

HexColor is a nice option for:

hogi_0-1769878048996.png

the hard nut I still have to crack is how I can use this in Graph Builder / Heatmaps.
 
I'm leaning towards: save  {r, g,b } *255 as an expression - and using a table script to manually transfer the values to Value Colors .

another workaround: use  JSL & shape equation.
but Heatmaps has its benefits ...

Recommended Articles