안녕하세요,
JMP Pro 17.2.0에서 For 루프에서 << 참조선 추가 명령을 사용하고 있는데, 처음 3개의 참조선 레이블을 반대쪽 축에 표시하고 싶습니다. 다음과 같은 표기법을 시도해 보았습니다.
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( rUCL[i], "Solid", "Purple", "UCL=" || Char( rUCL[i] ), 1, Label Position("Opposite) );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( rUCL[i], "Solid", "Purple", "UCL=" || Char( rUCL[i] ), 1, Label Settings( {Opposite Axis( 1 )} ) );
하지만 제가 시도해 본 것은 아무것도 작동하지 않았고 " 이름이 해결되지 않았습니다: '레이블 위치'에 대한 액세스 또는 평가 시 레이블 위치..." 와 같은 오류가 발생했습니다.
이걸 구현할 방법이 있을까요? 제 코드 예시와 제가 하고 싶은 작업을 아래에 적어주세요.

For( i = 1, i <= z, i++,
Eval(Expr(
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( rUCL[i], "Solid", "Purple", "UCL=" || Char( rUCL[i] ), 1 );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( rCL[i], "Solid", "Black", "CL=" || Char( rCL[i] ), 1 );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( rLCL[i], "Solid", "Purple", "LCL=" || Char( rLCL[i] ), 1 );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( center[i], "Solid", "Green", "pCL=" || Char( Round( center[i], 2 ) ), 2 );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( center[i] - sigma[i], "Dashed", "Blue", "-1Sig=" || Char( Round( center[i] - sigma[i], 2 ) ), 1 );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( center[i] + sigma[i], "Dashed", "Blue", "+1Sig=" || Char( Round( center[i] + sigma[i], 2 ) ), 1 );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( center[i] - 3*sigma[i], "Solid", "Red", "pLCL=" || Char( Round( center[i] - 3*sigma[i], 2 ) ), 2 );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( center[i] + 3*sigma[i], "Solid", "Red", "pUCL=" || Char( Round( center[i] + 3*sigma[i], 2 ) ), 2 );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( center[i] - 4*sigma[i], "Dotted", "Dark Gray", "pLDL=" || Char( Round( center[i] - 4*sigma[i], 2 ) ), 1 );
rpVarPlots1[i][AxisBox( 1 )] << Add Ref line( center[i] + 4*sigma[i], "Dotted", "Dark Gray", "pUDL=" || Char( Round( center[i] + 4*sigma[i], 2 ) ), 1 );<BR />)));
레이블 설정을 사용할 때 매개변수 하나를 추가해야 할 수도 있습니다(제 예시에서는 두 번째 매개변수 1번인데, 투명도 설정용입니다). 저는 JMP18을 사용하고 있는데, 이 방법이 효과적입니다.
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
);
ab = Report(gb)[AxisBox(2)];
For(i = 1, i <= 3, i++,
ab << Add Ref Line(
50 + i * 5,
"Solid",
"Black",
"my label",
1,
1,
Label Settings({Label Position("Outside"), Opposite Axis(1)})
)
);