안녕 모두,
bivariate 음모에 텍스트 상자를 배치하려고합니다.
텍스트 상자의 내용은 적합성을 기반으로하는 이변 변수 보고서에서 추출되므로 처음부터 이변 수를 구성 할 때 준비되지 않았습니다.
이에 관한 구문을 알려주십시오.
다음은 사용중인 코드의 단순화 된 버전입니다. bivariate에 숫자 "this_var"(끝에)를 추가하고 싶습니다.
biv=Dt << Fit Y by X(
Robust Fit,
X( Eval( Column( Dt, "X" )[rows[i]] ) ),
Y( Eval( Column( Dt, "Y" )[rows[i]] ) ),
Fit Robust( {Line Color( {213, 72, 87} ), Line Style( "Dotted" )} ),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Frame Size( 799, 464 ), Marker Size( 12 ),
Marker Drawing Mode( "Outlined" ),
DispatchSeg( Line Seg( 1 ), {Line Style( "Dotted" )} ),
Row Legend(
:WAFER,
Color( 0 ),
Color Theme( "" ),
Marker( 1 ),
Marker Theme( "Standard" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
),
//--display Value column entry here from Dt ---
Add Text Annotation(
Text( "Value:" || char(Format(Eval( Column( Dt, "Value" )[rows[i]] ), "Scientific", 10))),
Text Box( {100, 10, 404, 200} )
)
}
)
),
)
/* get the report into a variable */
reportbiv = biv << Report;
this_var = Report( biv )[Outline Box( "Fit" )][NumberColBox(1)][2];
//----Need to add above variable in a text box in bivariate plot above여기에 귀하의 질문이 무엇인지에 대한 해답을 설명하는 스크립트가 있습니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
Biv = Bivariate( Y( :weight ), X( :height ), Fit Robust( {Line Color( {213, 72, 87} )} ) );
this_var = (Report( biv )[Outline Box( "Robust Fit" )][Number Col Box( 1 )] << get)[1];
biv( report ) << Add Text Annotation( Text( Char( this_var ) ), Text Box( {65, 35, 200, 77} ) );
또 다른 옵션은 더 나은 위치와 기능을 제공하는 "Add Graphic Text"를 사용하는 것입니다.
이 두 가지 옵션은 모두 Scripting Index에 문서화되어 있습니다.
도움말 ==> 스크립트 색인 ==> FrameBox