cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

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