在分发平台中,您可以将箱形图添加到直方图(附图 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>