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>