안녕,
그래프 빌더가 아닌 하나의 창에서 여러 그래프에 대한 질문이 있습니다.
각 x축과 y축을 갖는 여러 개의 선 그래프를 갖고 싶습니다(아래 그림과 같이 실제로는 3개의 열과 4개의 행). 실제로 이러한 유형의 그래프는 'Fit Y by X' 모드를 사용하여 생성할 수 있습니다. 그러나 이렇게 선을 그릴 수는 없습니다.

스크립트의 "V 목록 상자" 또는 "H 목록 상자" 옵션이 이 작업을 수행할 수 있었던 것으로 기억합니다. 그러나 나는 그것을 완전히 기억할 수 없으며 심지어 인터넷 검색에서도 이에 대한 정보를 찾을 수 없었습니다.
'그래프 빌더' 모드에서 이 작업을 수행할 수 있나요?
사용 라인업 상자 N Col(2)을 사용하면 이와 같은 작업이 더 쉬울 가능성이 높습니다.
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
new window("",
Lineup Box(N Col(2),
dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
),
dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
),
dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
),
dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
)
);
);
창 메뉴에서 창 결합을 확인할 수도 있습니다.
'V List Box'와 'H List Box'를 사용하여 정확히 내가 원하는 것을 기반으로 나만의 스크립트(예를 들어)를 만들었습니다.
아래 스크립트는 "$SAMPLE_DATA/Big Class.jmp"를 열면 실행될 수 있습니다.
New Window( "Run Data",
H List Box(
V List Box(
Graph Builder(
Size( 400, 350 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ), Overlay( :sex ), Color( :name ) ),
Elements( Line( X, Y, Legend( 5 ) ), Points( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "weight" ), Image Export Display( Normal )}
),
Dispatch( {}, "height", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "weight", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
)
),
V List Box(
Graph Builder(
Size( 400, 350 ),
Show Control Panel( 0 ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ), Color( :name ) ),
Elements( Line( X, Y, Legend( 5 ) ), Points( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "height" ), Image Export Display( Normal )}
),
Dispatch( {}, "weight", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "height", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
)
),
),
H List Box(
V List Box(
Graph Builder(
Size( 400, 350 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Overlay( :sex ), Color( :name ) ),
Elements( Line( X, Y, Legend( 5 ) ), Points( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "age" ), Image Export Display( Normal )}
),
Dispatch( {}, "height", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "age", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
)
),
V List Box(
Graph Builder(
Size( 400, 350 ),
Show Control Panel( 0 ),
Variables( X( :height ), Y( :age ), Overlay( :sex ), Color( :name ) ),
Elements( Line( X, Y, Legend( 5 ) ), Points( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "height" ), Image Export Display( Normal )}
),
Dispatch( {}, "age", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "height", ScaleBox, {Label Row( Show Major Grid( 1 ) )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
)
),
)
);