Hi All,
In the following example, a heat map was created using Big Class.jmp as an example:
gb=Graph Builder(
Size( 686, 525 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ), Color( :age ) ),
Elements( Heatmap( X, Y, Legend( 7 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
7,
Properties(
0,
{gradient( {Scale Values( [11 18] )} )},
Item ID( "age", 1 )
)
)}
)
)
);
Is there a way to use variables to define the gradient scale limits? Here's what I'd like to achieve:
gradient_low=10;
gradient_high=19;
gb=Graph Builder(
Size( 686, 525 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ), Color( :age ) ),
Elements( Heatmap( X, Y, Legend( 7 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
7,
Properties(
0,
{gradient( {Scale Values( matrix({gradient_low, gradient_high}) )} )},
Item ID( "age", 1 )
)
)}
)
)
);
I would like to use "grandient_low" and "gradient_high" to define the heatmap gradient limits.
I've tried to use eval() , eval expr(), etc. but haven't got it to work yet.
Thanks