こんにちは
私は永久にフォーマットを変更することを探しています:
1)赤い点線の管理限界
2)赤い実線の仕様制限
Platforms内で色を変更することはできますが、線の種類は変更できません。これを行うためにCustomizationに進み続ける必要はありません。
それがスクリプトの問題である場合は、どうすれば永続的にすることができるのか教えてください。これはまだ初心者です
前もって感謝します
まず、管理図をプロットし、線のフォーマットをカスタマイズします。
(JMPのサンプルデータのBig Classサンプルデータを使用しました。)
次に、このためのJSLスクリプトをキャプチャします。管理図ビルダーの赤い三角形メニュー>スクリプトの保存>スクリプトウィンドウへ:
Control Chart Builder(
Size( 508, 438 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :height ) ),
SendToReport(
Dispatch(
{},
"Control Chart Builder",
FrameBox,
{DispatchSeg( Line Seg( 3 ), {Line Style( "Dotted" )} ),
DispatchSeg( Line Seg( 4 ), {Line Style( "Dotted" )} )}
)
)
このスクリプトを実行すると、カスタマイズ(この場合は点線)を使用して、まったく同じ管理図が再作成されます。
これで、スクリプトをカスタマイズして、別のY変数を指定できるようになりました。
列ダイアログを表示する最初にこのスニペットを追加します:
//This bit creates a new object called col_dlg using the Column Dialog function
col_dlg = Column Dialog(
_yVar = ColList( "Y, Variable" )
);
次に、管理図スクリプトの変数Yを、col_dlgの変数Yを参照する別の少しのJSLで置き換えます。 :
col_dlg["_yVar"]
最終的なスクリプトは次のようになります。
//This version generalises to any (continuous) column in the current data table
//This is done by using the Column Dialog function
//And then substituting in col_dlg"_yVar" for the column name
//This bit creates a new object called col_dlg using the Column Dialog function
col_dlg = Column Dialog(
_yVar = ColList( "Y, Variable" )
);
//This bit is as before but substituting in col_dlg"_yVar"
Control Chart Builder(
Show Capability( 0 ),
Variables( Y( col_dlg["_yVar"] ) ),
SendToReport(
Dispatch(
{},
"Control Chart Builder",
FrameBox,
{DispatchSeg( Line Seg( 3 ), {Line Style( "Dotted" )} ),
DispatchSeg( Line Seg( 4 ), {Line Style( "Dotted" )} )}
)
)
);
これがお役に立てば幸いです。
フィル