次のコードを使用して、JMP GraphBuilderで次の画像を作成しました。
Graph Builder(
Size( 1106, 867 ),
Legend Position( "Bottom" ),
Variables(
Y( :count_traditional ),
Y( :count_flat_probabilistic, Position( 1 ) ),
Y( :count_increasing_probabilistic, Position( 1 ) )
),
Elements(
Histogram( Y( 1 ), Y( 2 ), Y( 3 ), Legend( 3 ) ),
Contour( Y( 1 ), Y( 2 ), Y( 3 ), Legend( 11 ) )
),
SendToReport(
Dispatch(
{},
"count_traditional",
ScaleBox,
{Min( 0 ), Max( 20.5 ), Inc( 1 ), Minor Ticks( 1 ),
Label Row( Show Major Grid( 1 ) )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
3,
Level Name( 0, "Traditional" ),
Level Name( 1, "Probabilistic (Flat)" ),
Level Name( 2, "Probabilistic (Increasing)" ),
Properties( 0, {Line Color( 3 ), Fill Color( 3 )} ),
Properties( 1, {Line Color( 5 ), Fill Color( 5 )} ),
Properties( 2, {Line Color( 4 ), Fill Color( 4 )} )
), Legend Model(
11,
Properties( 0, {Fill Color( 67 )} ),
Properties( 1, {Fill Color( 69 )} )
)}
),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "Number of Visits" )} ),
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {3, [0, 1, 2], 11, [-1, -1, -1]} ),
Position( {0, 1, 2, -1, -1, -1} )}
)
)
)

質問:1番目と3番目の輪郭をそれぞれのボックスの中央に配置するにはどうすればよいですか?
ありがとう、
エイドリアン
こんにちはエイドリアン、
バグと思われる正確な問題を解決するための実用的な手段を見つけることができませんでしたが、考えられる回避策に非常に近づきました。
- 3つのY列をスタックします(データの名前をCOUNTSに変更します)
- GBでは、ラベル列をグループXとして使用します
- データをY軸ボックスにドラッグし、ヒストグラムとバイオリン図を選択します
- [ラベル]列を[オーバーレイ]ボックスにドラッグします(この例では、列1〜3のみを使用します)
- 輪郭メニューでオーバーレイの選択を解除します
次のようなものが表示されます。

このためのスクリプトは次のとおりです。
Graph Builder(
Variables( Y( :COUNTS ), Group X( :Label ), Overlay( :Label ) ),
Elements( Histogram( Y, Legend( 5 ) ), Contour( Y, Overlay( 0 ), Legend( 6 ) ) ),
SendToReport( Dispatch( {}, "", ScaleBox( 2 ), {Select} ) )
)
それは完璧ではありませんが、うまくいくかもしれません。
ベスト、
ティエリー
ありがとう、ティエリー。
これがあなたのステップ3の後の私の姿です:それはよさそうです。

これがステップ4の後の私の図です:何かがうまくいかなかった。

オーバーレイの選択を解除できる場所がわかりませんか? スクリプトを手動で試しましたが、上にコピーした図は変更されませんでした。
Graph Builder(
Size( 1022, 842 ),
Variables( Y( :Data ), Group X( :Program ), Overlay( :Program ) ),
Elements( Histogram( Y, Legend( 4 ) ), Contour( Y, Overlay( 0 ), Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"Data",
ScaleBox,
{Min( -0.5 ), Max( 20.5 ), Inc( 1 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model( 4, Properties( 0, {Line Color( 0 ), Fill Color( 0 )} ) ),
Legend Model( 5, Properties( 0, {Fill Color( 1 )} ) )}
),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "Number of Visits" )} )
)
)乾杯、
エイドリアン
こんにちはエイドリアン、
これは、GB単位の等高線のオーバーレイオプションの場所のスクリーンショットです。

ベスト、
TS
ありがとう、ティエリー! 私のバージョンのJMP(13.1)にはそのオプションが表示されないので、ソフトウェアを更新するときが来たと思います。