jsl:如何使用组列表进行绘图?从这篇文章跟进: https://community.jmp.com/t5/Discussions/Script-to-loop-thru-and-group-columns-by-name-dynamically/mp/470274#M71439
我正在按 StepID 将 10k+ 列分组,但现在尝试将它们全部绘制出来。
我不太清楚如何告诉它按所有组的列表进行绘图。有什么建议吗?

/*plotting a basic Fit YbyX just to get pValues. Formatting and style done on final plot*/
ow1 = Oneway(
Y( dtAggWide<<GET column="" group=""></GET>
脚本回复:jsl:如何使用组列表进行绘图?你最有可能用这样的东西来做到这一点(你需要 EvalEvalExpr):
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Group Columns("group1", {"height", "weight"});
Eval(
EvalExpr(
dt << Oneway(
Y(Expr(dt << Get Column Group("group1"))),
X(:age)
)
)
);
看使用 Eval Insert、Eval Expr、Parse 和 Substitute 将一个表达式插入另一个表达式有关 Eval(EvalExpr()) 的更多信息和示例
回复:jsl:如何使用组列表进行绘图?对不起,我在这里挣扎。
我不确定为什么要嵌套 evalexpr?
有没有办法代替
Y( dtAggWide<<GET column="" group=""></GET>
列组列表?
我之前创建了这个列表,如何将这个 RecipeStepIndex 交换到 Y 组中
//Build and prefill an Array of names of the RecipeStepId
Summarize( dt, RecipeStepIndex = by( :RecipeStepId) );//get list of unique RecipeStepID's

回复:jsl:如何使用组列表进行绘图?
好的,所以我知道了,但我不确定如何在 Y( 部分中继续循环和创建新术语。
有什么建议吗?
colgroupNames = dt << get column groups names;<BR /><BR />/*plotting a basic Fit YbyX just to get pValues. Formatting and style done on final plot*/<BR />ow1 = Oneway(<BR />Y( dtAggWide<<GET column="" group=""></GET>, dtAggWide<<GET column="" group=""></GET>, dtAggWide<<GET column="" group=""></GET>),<BR />X( :ChamberId ),<BR />//By(:),<BR /><BR />//All pairs Tukey HSD test<BR />All Pairs(<BR />1,<BR />Confidence Quantile( 0 ),<BR />Difference Matrix( 0 ),<BR />LSD Threshold Matrix( 0 ),<BR />Connecting Letters Report( 0 ),<BR />Ordered Differences Report( 1 )<BR />),<BR />//invisible, //use this to speed up.<BR />);dtAggWide = current data table();
dtAggWide << set name( "AggWide");
RecipeStepIndex ={"10.0.0.0.0.0", "11.0.0.0.0.0", "12.0.0.0.0.0"} // column groups names. Each group has 100+ columns.
//trying to create a series of charts using the groups, looping through the groups
ow1 = Oneway(
Y( for( i = 1, i<=Nitems( RecipeStepIndex), i++,
dtAggWide<<GET column="" group=""></GET>