配布プラットフォームでは、ボックス プロットをヒストグラムに追加できます (添付の写真 1)。
Pic 1Pic 1写真1
グラフビルダーで同様のプロットを作成するにはどうすればよいですか? 私が尋ねている理由は、それをカテゴリパラメータでオーバーレイしたいからです。
これらのプロットを個別に作成し、Photoshop で手動で添付しました (添付の pic2 を参照)。
Pic 2Pic 2写真2
そのようなことを、通常はダミー変数を使用して実行されるグラフビルダーではるかに簡単かつ迅速に実行できる場合は、私に知らせてください (できれば 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>
グラフ ビルダーの 1 つのインスタンスで必要なことを対話的に行う方法はわかりませんが、以下は、必要なものを取得できる簡単なスクリプトの "開始" です。

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>