여러분, 안녕하세요,
하위 집합 버튼 기능을 사용하여 관리도에 대한 데이터 테이블 하위 그룹을 만들려고 합니다. 이 링크를 찾았습니다 대화형 그래프에서 부분집합 만들기?유사하지만 행을 위한 것입니다. 대신 열을 사용하고 싶습니다. 여러 개의 열이 있고 컨트롤 차트와 함께 열 전환기를 사용하고 있습니다. 관리도에서 특정 데이터 요소를 선택하고 해당 특정 열의 해당 요소에 대한 데이터만 가져올 수 있기를 바랍니다.
아래는 내가 사용하려고 시도한 JSL이며 열로 수정하려고 시도했지만 실패했습니다.
dt5= Data Table( "SPC Columns" );
colNamesList = dt5 << get Column names (string, Continuous);
gb= dt5 << Control Chart Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Variables( Y( eval(colNamesList[1]) ) ),
Chart(
Position( 1 ),
Limits( Shade Zones( 1 ) ),
Warnings(
Test 1( 1 ),
Test 2( 1 ),
Test 3( 1 ),
Test 4( 1 ),
Test 5( 1 ),
Test 6( 1 ),
Test 7( 1 ),
Test 8( 1 )
)),
Column Switcher(colNamesList[1], Eval( colNamesList ))
);
subsetButton = Button Box( "Click to Create a Subset of Selected Points",
If( N Rows( dt5 << get selected rows ) > 0,
dt5 << subset( selected rows( 1 ), selected columns( 0 ) )
)
);
Report( gb )["Graph Builder"] << append( subsetButton );
이렇게 하면 특정 데이터 요소를 선택할 때 단일 데이터 열을 원하는 행에 데이터가 있는 모든 열이 제공됩니다.
도움을 주셔서 감사합니다.
-라이언
대부분의 작업을 완료했습니다. 완료하는 한 가지 방법은 다음과 같습니다.
NamesDefaultToHere(1);
// Data table with some continuous columns
dt = Open("$SAMPLE_DATA/Big Class.jmp" );
colNamesList = dt << get Column names (string, Continuous);
// Control chart
gb = dt << Control Chart Builder(Show Control Panel( 0 ), Variables( Y( eval(colNamesList[1]) ) ));
// Add a column switcher
cs = gb << Column Switcher(colNamesList[1], Eval( colNamesList ));
// 'Extra' button with subset action
subsetButton = Button Box("Click to Create a Subset of Selected Points",
If( N Rows( dt << get selected rows ) > 0,
currentCol = cs << getCurrent;
dt2 = dt << subset( selected rows( 1 ), Columns(Eval(Column(dt, currentCol))));
dt2 << setName("Subset of "||(dt << getName)||" using "||currentCol);
,
Beep();
);
);
// Add this button to the control chart report (use 'topParent' so that this is not affected by any column switcher changes)
(Report(gb)[OutlineBox("Control Chart Builder")] << topParent) << append(subsetButton);