たくさんの種類がありますが、 JMPグラフィックスは現在、最新バージョンのインタラクティブですJMPライブ、JMP プラットフォーム内の特定のオプションが有効になっていると、完全な対話性が妨げられる場合があります。 段階的なアプローチを使用すると、JMP Live での対話性を向上させるためにグラフの外観をわずかに調整できる場合があります。
JMP Live 出力は、HTML5 基盤を使用して構築されています。 それはどういう意味ですか? これは、JMP Live には HTML5 を超える追加機能 (サーバー上でグラフを再生成するために使用される計算にフィルタリングされた行を含めるなど) がある一方で、対話性テストの多くは JMP Live を使用せずに HTML5 のみを調べることで実行できることを意味します。出力。
インタラクティブ性を調べて修正するための 2 つのアプローチ、つまりインタラクティブ (しゃれではありません) とスクリプト エディターを使用したアプローチを検討してみましょう。 どちらのアプローチでも、次のサンプル 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 クライアントに表示されるデータ フィルターと箱ひげ図。
インタラクティブなアプローチ
インタラクティブ性を調べる 1 つの方法は、[公開] メニュー オプションを使用することです。 任意の 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 のインタラクティブなデータ フィルターと箱ひげ図。
スクリプトエディター
インタラクティブ性を調べるもう 1 つの方法は、スクリプト エディターを使用することです。 次のコードをサンプル スクリプトに追加して実行し、Web レポートをローカルに保存します。
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.データテーブルとJSLスクリプトはJMP Liveからダウンロードできます。
データ テーブルとスクリプトの両方を使用すると、JMP Live に公開されたスクリプトの作成者でなくても、プラットフォーム スクリプト オプションの変更が結果として得られるインタラクティブ性への影響を段階的に調べることができます。