ライフ分布プラットフォームで行の状態で定義された色を使用するにはどうすればよいでしょうか?分析プラットフォームでは、グラフの色が行の状態で定義されているものと一致することを期待していました (該当する場合)。しかし、そうではないようです。以下は、性別変数に基づいて行の状態の色を適用し、性別別にグループ化された寿命分布も分析した大きなクラスの例です。データテーブルでは、紫とオレンジの代わりに標準の青と赤の色が使用されます。

コード
dt = Open( "$SAMPLE_DATA\big class.jmp" );
dt << Set Row States(
[6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 6145, 6144, 6144, 1536, 1536, 1536, 1536, 6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 1536,
1536, 1536, 1536, 6144, 6144, 1536, 1536, 1536, 1536, 1536, 6144, 6144, 1536, 6144, 1536, 1536]
);
Life Distribution(
Perspective( Compare Groups ),
Y( :height ),
Grouping( :sex ),
Confidence Interval Method( Wald ),
Select Distribution( Distribution, Weibull ),
Select Scale( Weibull ),
Tabbed Report( 0 ),
);
マスカスタマイゼーションRe: 行の状態で定義された色をライフ配信プラットフォームで使用するにはどうすればよいですか?これに対する私の現在の回避策は、「CustomStream」および「Marker」セグメントをループし、行の状態から色の値を取得することです。 もっと良い方法があることを本当に願っています。
dt = Open( "$SAMPLE_DATA\big class.jmp" );
dt << Set Row States(
[6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 6145, 6144, 6144, 1536, 1536, 1536, 1536, 6144, 6144, 6144, 6144, 6144, 1536, 1536, 1536, 1536,
1536, 1536, 1536, 6144, 6144, 1536, 1536, 1536, 1536, 1536, 6144, 6144, 1536, 6144, 1536, 1536]
);
//dt = Current Data Table();
dtsum = dt << Summary( Group( :Sex));
cc = dtsum << get row states();
Close( dtsum, NoSave );
platform = Life Distribution(
Perspective( Compare Groups ),
Y( :height ),
Grouping( :sex ),
Confidence Interval Method( Wald ),
Select Distribution( Distribution, Weibull ),
Select Scale( Weibull ),
Tabbed Report( 0 ),
);
reportWindow = platform << Report;
customSegs = reportWindow["Compare Distribution"]<< Xpath( "//CustomStreamSeg" );
markerSegs = reportWindow["Compare Distribution"]<< Xpath( "//MarkerSeg" );
For( i = 1, i <= N Items( customSegs ), i++,
customSegs[i] << {Fill Color( Color Of( As Row State( cc[i] ) ) ), Fill( 0 )};
customSegs[i] << {Line Color( Color Of( As Row State( cc[i] ) ) ), Fill( 0 )};
markerSegs[2*i-1] << {Color( Color Of( As Row State( cc[i] ) ) )};
);