다음 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' 액세스 또는 평가에 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;
)
);