Jmp12の信頼区間プロットと管理図の平均にデータラベルを挿入する方法を教えてもらえますか? わかりやすくするために、添付の画像を参照してください。

これがあなたにスタートを与えるための簡単なスクリプトです。それははるかに凝ったものにすることができますが、これはあなたに出発点を与えるはずです:
Names Default To Here( 1 );
dt = Current Data Table();
// Calculate the means so they can be displayed
Summarize( dt, bygroup = by( :Name( "Factor-1" ) ), themeans = Mean( :thickness ) );
// Run the basic graph builder code
gb = dt << Graph Builder(
Variables( X( :Name( "Factor-1" ) ), Y( :Thickness ) ),
Elements( Points( X, Y, Legend( 5 ), Summary Statistic( "Mean" ), Error Bars( "Confidence Interval" ) ) )
);
// Loop across the different factors and add the mean as a text
// Note, that because the x axis values are based upon a character column,
// the X position is 0 for the first group, 1 for the second, etc.
For( i = 1, i <= N Items( bygroup ), i++,
Eval(
Substitute(
Expr(
Report( gb )[framebox( 1 )] << add graphics script( Text( {__x__, __y__}, __mean__ ) )
),
Expr( __x__ ), i-1 + .1,
Expr( __y__ ), themeans[i],
Expr( __mean__ ), Char( Themeans[i] )
)
)
);New Table( "test",
Add Rows( 20 ),
New Column( "Factor-1",
Character,
"Nominal",
Set Values(
{"Factor 1", "Factor 1", "Factor 1", "Factor 1", "Factor 1", "Factor 1",
"Factor 1", "Factor 1", "Factor 1", "Factor 1", "Factor 2", "Factor 2",
"Factor 2", "Factor 2", "Factor 2", "Factor 2", "Factor 2", "Factor 2",
"Factor 2", "Factor 2"}
)
),
New Column( "Thickness",
Numeric,
"Continuous",
Format( "Best", 11 ),
Set Selected,
Set Values(
[1.50740933, 1.601142469, 1.074704843, 1.884292315, 1.012608931,
1.607336196, 1.832731982, 1.269104476, 1.652280427, 1.729379409,
0.195244429, 0.764830482, 0.401538929, 0.890074236, 0.395640352,
0.896762654, 0.389728401, 0.223935429, 0.165762602, 0.414394237]
)
),
Set Row States( [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] )
)私のせい.....現在のディスカッションフォーラムに問題があり、最初の応答の後に何かを添付することができません。 スクリプトに変換できますか?
データテーブルのテーブルパネルの[ソース]エントリの下で、それをクリックして選択します
「テーブルスクリプトのコピー」
次に、返信の[JSLコードを挿入]をクリックして、コードを貼り付けます
その問題を処理するためのスクリプトを作成できます。要約統計量を計算してから、要約情報を含むグラフに注釈を追加できます。
サンプルデータがあれば、その方法について良いスタートを切ることができます。
ジムに感謝します。
各要素の統計を手動で計算し、キャプションボックスに挿入する必要があるようです。
グラフにインタラクティブにラベルを追加する方法を尋ねていますか?
平均と信頼区間は計算された値であるため、行状態ラベルオプションを使用して値を表示することはできません。 グラフを右クリックしてキャプションボックスを追加できますが、そこに表示される統計は全体的な統計です。 描画ツールに移動してテキスト入力ボックスを選択し、それを手動でグラフに追加する必要があります。
