계층적 표시 상자안녕,
JSL을 사용하여 계층적 상자 그룹을 만드는 가장 좋은 방법은 무엇입니까?
예를 들어 모든 성별과 모든 연령에 대한 분포(Big Class.jmp)를 만든 다음 파일 탐색기와 같이 정렬하고 싶습니다.
(첨부된 스크린샷 참조)
내 질문이 명확하기를 바랍니다 
고맙습니다
톰.
Re: 계층적 표시 상자탭 상자로 이 작업을 수행하는 가장 좋은 방법은 무엇입니까?
@Mark_Bailey
감사!
Re: 계층적 표시 상자크레이지,
시원한......
Re: 계층적 표시 상자계층 구조 상자도 있습니다. 이시카와 Fishbone 다이어그램이지만 3가지 프레젠테이션 스타일이 있습니다.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
window = New Window( "Hierarch", vlb = Hier Box( Text Box( "Big Class" ) ) );
Summarize( sex group = By( :sex ) );
Summarize( age group = By( :age ) );
For( isex = 1, isex <= N Items( sex group ), isex++,
outline = Hier Box( Text Box( "Sex = " || sex group[isex] ) );
For( iage = 1, iage <= N Items( age group ), iage++,
Eval(
Eval Expr(
outline << Append(
Hier Box(
Text Box( "Age = " || age group[iage] ),
Button Box( "Sex is " || sex group[isex] || " and Age is " || age group[iage],
// the button runs a script, use eval(evalexpr(...expr(xxx)))
// to capture a value of a variable that was only available
// while the display box tree was being constructed...
Print( Expr( age group[iage] ), Expr( sex group[isex] ) )
)
)
)
)
);
);
vlb << Append( outline );
);
vlb << changetype( "fishbone" );
Wait( 1 );
vlb << changetype( "hierarchy" );
Wait( 1 );
vlb << changetype( "nested" );
three styles of hier box presentationHier Box 프레젠테이션의 세 가지 스타일
텍스트 상자를 버튼 상자로 대체했습니다. 그 중 하나를 클릭하면 다음과 같이 말합니다.
"13"
"에프"
Re: 계층적 표시 상자트리 노드가 포함된 트리 상자가 원하는 것에 더 가까울 수 있습니다.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Summarize( sex group = By( :sex ) );
Summarize( age group = By( :age ) );
gender_tree = {};
For( isex = 1, isex <= N Items( sex group ), isex++,
gnode = tree node( "Gender - " || sex group[isex] );
For( iage = 1, iage <= N Items( age group), iage++,
age_node = tree node(age group[iage]);
gnode << append(age_node);
);
insert into(gender_tree, gnode);
);
nw = New Window( "Hierarchy Tree",
gtree = tree box(gender_tree, size(300, 300),
set max size(600, 600),
set autostretching(1, 1)
)
);
root_list = gtree << get roots;
for (i = 1, i <= nitems(root_list), i++,
gtree << expand(root_list[i]);
);

Re: 계층적 표시 상자
이 응답을 게시한 후 코드를 다시 시도했는데 문제가 없었습니다!마크 미안해!
Mark 반복 변수는 Big Class의 열 이름과 동일하기 때문에 변경해야 했습니다.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
window = New Window( "Hierarch", vlb = V List Box() );
Summarize( sex group = By( :sex ) );
Summarize( age group = By( :age ) );
For( isex = 1, isex <= N Items( sex group ), isex++,
outline = Outline Box( "Sex = " || sex group[isex] );
For( iage = 1, iage <= N Items( age group), iage++,
outline << Append(
Outline Box( "Age = " || age group[iage],
Text Box( "Sex is " || sex group[isex] || " and Age is " || age group[iage] )
)
);
Show( isex, iage );
);
vlb << Append( outline );
);
Re: 계층적 표시 상자이 예에서는 한 가지 접근 방식을 보여줍니다.
Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
window = New Window( "Hierarch", vlb = V List Box() );
Summarize( sex group = By( :sex ) );
Summarize( age group = By( :age ) );
For( sex = 1, sex <= N Items( sex group ), sex++,
outline = Outline Box( "Sex = " || sex group[sex] );
For( age = 1, age <= N Items( age group), age++,
outline << Append(
Outline Box( "Age = " || age group[age],
Text Box( "Sex is " || sex group[sex] || " and Age is " || age group[age] )
)
);
Show( sex, age );
);
vlb << Append( outline );
);