我想了解如何在以下 JSL 腳本中隱藏或關閉本地數據過濾器。 我現在所擁有的是錯誤。 我不確定如何為選擇函數中的每個圖形生成器圖分配一個變量。
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 添加對 Graph Builders 的引用。
這是其他選項(我只將它添加到男性圖形生成器):
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;
)
);