次のJSLスクリプトで、ローカルデータフィルターを非表示または閉じる方法を知りたいと思いました。 私が今持っているのはエラーを出すことです。 Choose関数の各グラフビルダープロットに変数を割り当てる方法がわかりません。
Names Default To Here( 1 );
dt=Open("$SAMPLE_DATA/Big Class.jmp");
// Prompt for the input and create graph
rc = New Window("Choose the parameters to be plotted",
rb = Radio Box({"Female", "Male"}),
Button Box("Ok",
Choose(rb<<GET></GET>ありがとう
私はこれがあなたが望むものを処理すると思います
Names Default To Here( 1 );
dt=Open("$SAMPLE_DATA/Big Class.jmp");
// Prompt for the input and create graph
rc = New Window("Choose the parameters to be plotted",
rb = Radio Box({"Female", "Male"}),
Button Box("Ok",
Choose(rb<<GET></GET>これを実行すると、次のエラーが発生します。
名前未解決:「gb」のアクセスまたは評価におけるgb
gb / * ### * /
ありがとう
gbを使用してグラフビルダーへの参照を追加する必要があります。
他のオプションは次のとおりです(男性のグラフビルダーにのみ追加しました):
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
// Prompt for the input and create graph
rc = New Window("Choose the parameters to be plotted",
rb = Radio Box({"Female", "Male"}),
Button Box("Ok",
Choose(rb << Get,
gb = Graph Builder(
Variables(X(:age), Y(:sex)),
Local Data Filter(Close Outline(1), Add Filter(columns(:sex), Where(:sex == "F"))),
SendToReport(Dispatch({}, "age", ScaleBox, {Add Ref Line(2.5, "Dotted", "Black", "", 3)}))
),
gb = Graph Builder(
Variables(X(:age), Y(:sex)),
Local Data Filter(Close Outline(1), Add Filter(columns(:sex), Where(:sex == "M"))) << visibility("Collapse"),
SendToReport(Dispatch({}, "age", ScaleBox, {Add Ref Line(2.5, "Dotted", "Red", "", 3)}))
)
);
rb << Close Window;
)
);