cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
LT
LT
Level I

"If" returns error response

I have a script to draw charts and use "if" for the reference line.

"Sometimes" the reference line is not correct. 

For example, when Rel_Test=H3TRB, the reference line should be 10, but it shows 5.

How could I fix it?

LT_0-1709611498770.png

 


d6_graph=dt2 << Graph Builder( Size( 400, 300 ), Show Control Panel( 0 ), Variables( X( :Lot), Y( :dIGSS, Position( 1 ) ), Color( :Lot ), By(:Rel_Test) ), Elements( Box Plot( X, Y( 1 ), Legend( 16 ) ) ), SendToReport( Dispatch( {}, "dIGSS", ScaleBox, {Min( 0 ), Max( 20 ), Inc( 5 ), Minor Ticks( 1 ), Add Ref Line( If(:Rel_Test=="H3TRB" | :Rel_Test=="HAST" | :Rel_Test=="UHAST" | :Rel_Test=="PCT",10.0,5.0), "Solid", "Medium Dark Red", If(:Rel_Test=="H3TRB" | :Rel_Test=="HAST" | :Rel_Test=="UHAST" | :Rel_Test=="PCT","1000%","500%"), )} ), Dispatch( {}, "graph title", TextEditBox, {Set Text( "dIGSS" )} ), Dispatch( {}, "Y title", ftest_name, {Set Text( "dIGSS" )} ) ) );

JMP version: 17.2.0 

0 REPLIES 0