다음 코드를 사용하여 JMP Graph Builder에서 다음 이미지를 만들었습니다.
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} )}
)
)
)

질문 : 첫 번째와 세 번째 윤곽선이 각각의 상자 중앙에 오도록하려면 어떻게해야합니까?
감사,
Adrian
안녕 Adrian,
버그로 보이는 정확한 문제를 해결할 수있는 실용적인 방법을 찾을 수 없었지만 가능한 해결 방법에 매우 근접했습니다.
- 3Y 열 쌓기 (데이터 이름을 COUNTS로 변경)
- GB에서는 레이블 열을 그룹 X로 사용합니다.
- 데이터를 Y 축 상자로 드래그하고 히스토그램 및 바이올린 플롯을 선택합니다.
- 레이블 열을 오버레이 상자로 드래그합니다 (이 예에서는 열 1-3 만 사용).
- Contour 메뉴에서 Overlay 선택 해제
다음과 같은 결과를 얻을 수 있습니다.

이를위한 스크립트는 다음과 같습니다.
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" )} )
)
)건배,
Adrian
안녕 Adrian,
다음은 Contour에 대한 오버레이 옵션 위치 (GB)의 스크린 샷입니다.

베스트,
TS
고마워, 티에리! 내 버전의 JMP (13.1)에는이 옵션이 표시되지 않으므로 소프트웨어를 업데이트 할 때가 된 것 같습니다.