在分發平台中,您可以將箱線圖添加到直方圖(附圖 1)。
Pic 1Pic 1圖一
如何在 Graph Builder 中製作類似的圖? 我問的原因是我想用分類參數覆蓋它。
我分別製作了這些圖並在 Photoshop 中手動附加它們(見附圖 2)。
Pic 2Pic 2圖2
如果這樣的事情可以在 Graph Builder 中更容易和更快地完成,這通常是用一個虛擬變量完成的,請告訴我(最好沒有 JSL 編碼!!)
@shasheminassab ,
吉姆為你提供了你想要的。下面是另一種觀點。
我不喜歡垂直直方圖,但您可以很容易地創建下面的視圖。 腳本如下。這更像是一個僅供參考,以確定開發人員是否知道旋轉框架或直接使用 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>