Hallo,
In JMP Pro 17.2.0 verwende ich den Befehl << Add Ref Line in einer For-Schleife und möchte, dass die ersten drei Referenzlinienbeschriftungen auf der gegenüberliegenden Achse angezeigt werden. Ich habe Notationen wie diese ausprobiert:
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 )} ) );
aber nichts, was ich versucht habe, funktioniert und führt zu Fehlern wie „ Name nicht aufgelöst: Beschriftungsposition beim Zugriff oder bei der Auswertung von ‚Beschriftungsposition‘ …“ .
Gibt es eine Möglichkeit, dies zu erreichen? Beispiel meines Codes und was ich unten tun möchte.

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 />)));
Möglicherweise müssen Sie bei der Verwendung der Beschriftungseinstellungen einen zusätzlichen Parameter hinzufügen (in meinem Beispiel den zweiten 1 für Transparenz). Das funktioniert bei mir, aber ich verwende 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)})
)
);