배포 플랫폼에서 히스토그램에 박스 플롯을 추가할 수 있습니다(그림 1 첨부).
Pic 1Pic 1그림 1
Graph Builder에서 유사한 플롯을 만들려면 어떻게 해야 합니까? 내가 묻는 이유는 범주형 매개변수로 오버레이하고 싶기 때문입니다.
해당 플롯을 별도로 만들고 Photoshop에서 수동으로 첨부했습니다(첨부된 그림 2 참조).
Pic 2Pic 2그림 2
보통 더미 변수로 하는 그래프 빌더에서 그런 일을 훨씬 쉽고 빠르게 할 수 있다면 알려주세요(가급적 JSL 코딩 없이!!)
@shasheminassab ,
Jim은 당신이 원하는 것을 제공했습니다.아래는 대체 보기입니다.
나는 수직 히스토그램의 팬이 아니지만 아래 보기를 꽤 쉽게 만들 수 있습니다. 스크립트는 다음과 같습니다.이것은 FYI에 가깝고 개발자가 GraphBuilder로 직접 원하는 레이아웃을 생성하거나 프레임을 회전하는 영리한 방법을 알고 있는지 확인하기 위한 것입니다.
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
//Gender is a numeric column
dt << New Column( "Gender",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( If( :sex == "F", 1, 2 ) ),
Value Labels( {1 = "F", 2 = "M"} ),
Use Value Labels( 1 )
);
//Counts is a constant column used a placed holder
dt << New Column( "Counts",
Numeric,
"Continuous",
Format( "Best", 12 ),
<< set Each Value(1)
);
gb = dt <<GRAPH builder=""></GRAPH>
Graph Builder의 한 인스턴스에서 원하는 작업을 수행할 수 있는 대화식 방법을 모르지만 아래는 원하는 작업을 수행할 수 있는 간단한 스크립트의 "시작"입니다.

names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
his = dt << Graph Builder(
Size( 534, 456 ),
Show Control Panel( 0 ),
Variables( X( :height ), Overlay( :sex ) ),
Elements( Points( X, Legend( 2 ) ), Histogram( X, Legend( 3 ) ) ),
SendToReport(
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ),
Dispatch(
{},
"Graph Builder",
FrameBox,
{DispatchSeg( Hist Seg( 1 ), Bin Span( 24, 0 ) ),
DispatchSeg( Hist Seg( 2 ), Bin Span( 24, 0 ) )}
)
)
);
box = dt << Graph Builder(
Size( 495, 296 ),
Show Control Panel( 0 ),
Variables( X( :height ), Overlay( :sex ), Color( :sex ) ),
Elements( Box Plot( X, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
FrameBox,
{DispatchSeg(
Box Plot Seg( "Box Plot (F)" ),
{Line Color( "Medium Dark Blue" ), Fill Color( "Medium Dark Blue" ),
Fill( 1 )}
), DispatchSeg(
Box Plot Seg( "Box Plot (M)" ),
{Line Color( "Medium Dark Red" ), Fill Color( "Medium Light Red" ),
Fill( 1 )}
)}
)
)
);
new window("Height", lub = lineupbox(n col(1)));
lub<<APPEND></APPEND>