Graph Builder的多個輸入大家好,
我正在編寫一個腳本,允許我選擇多個Y響應(以及X因子),並使用Graph構建器,我將能夠相應地繪製它。我能夠選擇相關的Y和X,但不知何論,圖形構建器部分不起作用。這是腳本:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dlg = Column Dialog(
ColID = Col List( "X, Factor", Max Col( 1 ) ),
SS = Col List( "Y, Response" ),<BR />);
Graph Builder(
Variables( X( Column(dt,ColID ), Y( Column(dt, SS ) ),
Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
)),
); 請讓我知道腳本的哪個部分出錯了。
謝謝。
Re:Graph Builder的多個輸入謝謝Jim和MS。Re:Graph Builder的多個輸入吉姆是對的。F 或者的任務 ColID 和 SS 有效,t 他列出了 DLG 必須先評估。此外,代碼中似乎有一些錯位的parantheses。
試試這個:
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dlg = Column Dialog(
ColID = Col List("X, Factor", Max Col(1)),
SS = Col List("Y, Response", Max Col(1))
);
Eval List(dlg[1 :: 2]);
Graph Builder(
Variables(X(Column(dt, ColID)), Y(Column(dt, SS))),
Elements(Points(X, Y, Legend(3)), Smoother(X, Y, Legend(4)))
);Re:Graph Builder的多個輸入列對話框返回的值不是縮放器格式。 它們以列表形式返回。 在您的示例中,列表名為dlg。
查看JMP腳本指南以獲取詳細信息
幫助==>圖書==>腳本指南