범례를 기존 biv 플롯으로 변경안녕,
범례 "나이"가 있는 biv 차트를 만들었습니다. 이제 다른 범례와 함께 동일한 그래프를 사용하고 싶습니다.
어떻게하니?
이것은 내가 시도하고 내가 얻는 오류입니다.
prof=Bivariate(
Y( :high),
X( :weight),
by(:country),
SendToReport(
Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 550, 450 ),
Row Legend(
:age,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 1 ),
Marker Theme( "Alphanumeric" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 ))
} )
)
);
Report( prof )[Frame Box(1)] << Row Legend( “sex”, color(1), marker(1));
Send는 'Send' 액세스 또는 평가에서 스크립팅 가능한 개체를 예상하고, Report( prof )[Frame Box( 1 )] << /*###*/Row Legend(
"섹스",
색상( 1 ),
마커( 1 )
) /*###*/
다음 스크립트에서 /*###*/로 표시된 오류
보고서( prof )[프레임 상자( 1 )] << /*###*/행 범례(
"섹스",
색상( 1 ),
마커( 1 )
) /*###*/
{}
Re: 범례를 기존 biv 플롯으로 변경이변량 분석에 'by'를 추가하면 개체 목록이 반환됩니다.따라서 목록의 각 항목에 대해 작업해야 합니다.
Names default to here( 1);
dt = Open( "$Sample_data/big class.jmp" );
prof = Bivariate(
Y( :height ),
X( :weight ),
By( age ),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Row Legend(
name,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
)
);
//Note how prof is a list
Show( type( prof ) );
Show( N Items( prof ) );
//Delete the old row legend first
Try( Report( prof[1] )[BorderBox(2)] << Delete );
//Add a new row legend
Report( prof[1] )[Frame Box(1)] << Row Legend(
sex,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
);