cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

"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

Recommended Articles