비록 많은 종류의 JMP 그래픽은 현재 최신 버전의 JMP 라이브 , 경우에 따라 JMP 플랫폼 내의 특정 옵션이 활성화될 때 완전한 상호 작용을 방해합니다. 증분 접근 방식을 사용하면 JMP Live에서 더 나은 상호 작용을 얻기 위해 그래프의 모양을 약간 조정할 수 있습니다.
JMP Live 출력은 HTML5 기반을 사용하여 구축됩니다. 그게 무슨 뜻이야? 즉, JMP Live에는 HTML5 이외의 추가 기능이 있지만(예: 서버에서 그래프를 재생성하는 데 사용되는 계산에 필터링된 행 포함) HTML5만 검사하여 JMP Live 없이 많은 상호 작용 테스트를 수행할 수 있습니다. 산출.
상호 작용을 검사하고 개선하기 위한 두 가지 접근 방식, 즉 대화식으로(말장난이 아님) 스크립트 편집기를 통해 살펴보겠습니다. 두 접근 방식 모두 다음 예제 JSL 스크립트를 실행하여 생성된 그래픽을 사용합니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp", Invisible );
jmpreport = NewWindow("Test",
VListBox(
DataFilterContextBox(
HListBox(
dt << DataFilter(Conditional, Count Excluded Rows(0), Local, Add Filter(columns(:age))),
dt << GraphBuilder(
Show Control Panel( 0 ),
Fit to Window( "Off" ),
X Group Edge( "Bottom" ),
Variables(
Y( :weight ),
Group X( :age )
),
Elements( Box Plot( Y, Legend( 1 ), Jitter( "None" ), Box Style( "Solid" ) ) )
)
)
)
)
);
결과는 다음과 같습니다.
A data filter and box plot as they appear on the JMP client.A data filter and box plot as they appear on the JMP client.A data filter and box plot as they appear on the JMP client.A data filter and box plot as they appear on the JMP client.JMP 클라이언트에 표시되는 데이터 필터 및 박스 플롯.
대화형 접근 방식
상호 작용을 검사하는 한 가지 방법은 게시 메뉴 옵션을 사용하는 것입니다. JMP 창의 메뉴 표시줄에서 파일 > 게시를 클릭합니다. 보고서 선택 창에서 테스트 결과 창의 테스트 상자를 선택합니다. 창 목록 바로 아래에 다음 메시지가 표시됩니다. “이 보고서에 대해 대화형 HTML이 부분적으로 구현되었습니다. 로그 메시지를 참조하십시오.” 이것은 결과의 일부 측면이 완전히 상호 작용하지 않을 수 있다는 첫 번째 단서입니다.
The interactive Publish menu option.The interactive Publish menu option.The interactive Publish menu option.The interactive Publish menu option.대화형 게시 메뉴 옵션.
로그 창을 검사합니다(보기 > 로그). 다른 메시지 중에서 "대화형 HTML: 단색 스타일의 박스 플롯은 대화형이 아닙니다."라는 메시지가 표시됩니다. 이제 이 특정 그래픽 요소에 집중할 수 있습니다.
Log containing interactivity messages.Log containing interactivity messages.Log containing interactivity messages.Log containing interactivity messages.대화형 메시지가 포함된 로그입니다.
이 보고서를 계속 게시(파일 또는 JMP Live로)하고 마우스 포인터를 상자 그림의 상자 위로 가져가면 "이 기능은 대화형이 아닙니다."라는 툴팁이 표시됩니다. (상자에는 해당 데이터 테이블 행에 대한 설명적인 마우스 오버 텍스트가 없지만 JMP Live에서는 여전히 로컬 데이터 필터의 필터 선택 변경 사항에 따라 그래프를 다시 그릴 수 있습니다.)
A data filter and box plot in JMP Live. The box plot is marked non-interactive.A data filter and box plot in JMP Live. The box plot is marked non-interactive.A data filter and box plot in JMP Live. The box plot is marked non-interactive.A data filter and box plot in JMP Live. The box plot is marked non-interactive.JMP Live의 데이터 필터 및 박스 플롯. 상자 그림은 비대화형으로 표시됩니다.
이 경우 단색이 아닌 상자 그림 스타일을 기꺼이 선택하면 더 나은 상호 작용을 얻을 수 있습니다. JMP 클라이언트에서 원래 테스트 창으로 돌아가 상자 그림의 상자를 마우스 오른쪽 버튼으로 클릭하고 상자 그림 > 상자 스타일 > 일반을 선택합니다.
Changing the box plot options interactively in the JMP client.Changing the box plot options interactively in the JMP client.Changing the box plot options interactively in the JMP client.Changing the box plot options interactively in the JMP client.JMP 클라이언트에서 상자 그림 옵션을 대화식으로 변경합니다.
게시 프로세스를 반복하면 상자 그림 위로 마우스를 가져가면 데이터 포인트에 대한 설명 텍스트가 표시됩니다.
Interactive data filter and box plot in JMP Live.Interactive data filter and box plot in JMP Live.Interactive data filter and box plot in JMP Live.Interactive data filter and box plot in JMP Live.JMP Live의 대화형 데이터 필터 및 박스 플롯.
스크립트 편집기
상호 작용을 검사하는 또 다른 방법은 스크립트 편집기를 사용하는 것입니다. 다음 코드를 예제 스크립트에 추가하고 실행하여 웹 보고서를 로컬에 저장합니다.
webreport = New Web Report();
webreport << Add Report(
jmpreport,
Title( "Test" )
);
url = webreport << Save("$DOCUMENTS/Test");
If( !Is Empty( url ),
Web( url )
);
또는 다음 코드를 추가하고 실행하여(실제 URL, 사용자 이름 및 API 키를 적절하게 대체) JMP Live에 게시합니다.
webreport = New Web Report();
webreport << Add Report(
jmpreport,
Title( "Test" )
);
url = webreport << Publish(URL("https://your_url.com/"), username("your_username"), ApiKey("your_api_key"));
If( !Is Empty( url ),
Web( url )
);
로그 창을 검사합니다. "대화형 HTML: 단색 스타일의 박스 플롯은 대화형이 아닙니다."를 포함하여 대화형 접근 방식이 생성한 것과 동일한 메시지가 표시됩니다.
Log containing interactivity messages.Log containing interactivity messages.Log containing interactivity messages.Log containing interactivity messages.대화형 메시지가 포함된 로그입니다.
상자 그림의 상자 위로 마우스 포인터를 가져가 보고서(로컬 또는 JMP Live에서)를 검사하면 "이 기능은 대화형이 아닙니다."라는 툴팁이 표시됩니다. 공개됩니다.
A data filter and box plot in JMP Live. The box plot is marked non-interactive.A data filter and box plot in JMP Live. The box plot is marked non-interactive.A data filter and box plot in JMP Live. The box plot is marked non-interactive.A data filter and box plot in JMP Live. The box plot is marked non-interactive.JMP Live의 데이터 필터 및 박스 플롯. 상자 그림은 비대화형으로 표시됩니다.
스크립트 편집기 창에서 스크립트를 직접 업데이트하기만 하면 대화식 방법에서와 동일한 수정을 할 수 있습니다. 특히 GraphBuilder() > Elements() > Box Style()을 Solid에서 Normal로 변경합니다.
Elements( Box Plot( Y, Legend( 1 ), Jitter( "None" ), Box Style( "Normal" ) ) )
저장 또는 게시 메시지가 포함된 스크립트를 다시 실행하고 출력을 다시 검사하는 경우 마우스를 가져가면 설명 상자 그림 데이터 포인트 텍스트가 표시됩니다.
Interactive data filter and box plot in JMP Live.Interactive data filter and box plot in JMP Live.Interactive data filter and box plot in JMP Live.Interactive data filter and box plot in JMP Live.JMP Live의 대화형 데이터 필터 및 박스 플롯.
보너스 팁: 인터랙티브 방식과 스크립팅 방식 간 전환
대화식 방법과 스크립팅 방법 사이를 쉽게 이동할 수 있습니다. 클라이언트에 있는 대부분의 JMP 그래픽의 빨간색 삼각형 메뉴에는 그래픽을 생성하는 데 사용된 스크립트를 표시하는 명령이 있습니다. 스크립트 저장 > 스크립트 창으로를 클릭합니다.
Saving a graphics script to a script window.Saving a graphics script to a script window.Saving a graphics script to a script window.Saving a graphics script to a script window.그래픽 스크립트를 스크립트 창에 저장.
이렇게 하면 새 스크립트 창을 열거나 그래픽을 생성하는 데 사용되는 스크립트를 현재 스크립트 창에 추가할 수 있습니다.
Graphics script saved to a script window.Graphics script saved to a script window.Graphics script saved to a script window.Graphics script saved to a script window.스크립트 창에 저장된 그래픽 스크립트.
마찬가지로 JMP Live에서 그래픽을 볼 때 세부 정보 섹션(소문자 'i' 모양의 버튼 클릭)으로 이동하고 각 데이터 테이블 또는 JSL 옆에 있는 다운로드 버튼(아래 방향 화살표)을 클릭할 수 있습니다. 로컬 복사본을 저장하는 스크립트입니다. (이 다운로드 버튼은 데이터 게시 및 데이터 다운로드 허용 게시 옵션이 지정된 경우에만 사용할 수 있습니다.)
Data table and JSL script available for download from JMP Live.Data table and JSL script available for download from JMP Live.Data table and JSL script available for download from JMP Live.Data table and JSL script available for download from JMP Live.JMP Live에서 다운로드할 수 있는 데이터 테이블 및 JSL 스크립트.
데이터 테이블과 스크립트를 모두 사용하면 JMP Live에 게시된 스크립트의 작성자가 아니더라도 플랫폼 스크립트 옵션 변경이 결과 상호 작용에 미치는 영향을 점진적으로 조사할 수 있습니다.