Hi all,
So I have a variability chart that is split by a "BY" grouping, I asked this question in https://community.jmp.com/t5/Discussions/How-to-add-Dynamic-horizontal-line-by-shared-y-axis-among/m-p/622722 in which I understand how the graphics script added the respective lines based on the values from the data tables. I was trying to adapt this method to the variability chart with more frameboxes and am unable to figure out how to do it. My guess as of now is to put each By in a for loop and add the graphics to the respective framebox iteratively but am confused as how to do that as I am not sure how to access a framebox iteratively. Any help would be appreciated. Thanks!
Please use the rpt from below and potentially add a for loop so that
//Potential for loop?<BR /><BR />rpt = dt << Variability Chart(
Y( :Head IC),
X( :Make, :Model ),
Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
Show Range Bars( 0 ),
Show Cell Means( 0 ),
Std Dev Chart( 0 ),
Points Jittered( 1 ),
BY(:Name("D/P"))
);
<BR />//Subset data table by "By" condition to add the correct lines based on the condition.<BR />
tree = rpt << Report;
Eval( Eval Expr(
tree[FrameBox( 1 )] << Add Graphics Script(
Local( {values = Expr( category average ), numbers = Expr( category number ), i, items, sum = 0},
items = numbers << Get Keys;
Pen Size( 2 );
Pen Color( "Blue" );
Summation( i = 1, N Items( items ),
Line( Eval List( {sum, values[items[i]]} ), Eval List( {sum += numbers[items[i]], values[items[i]]} ) );
0
)
)
)
)
)