グループ名でマーカースタイルを割り当てることは可能ですか?このスクリプトを例にとると、すべてのページで列 "平均"の線スタイルを常に破線にし、列 "範囲"の線スタイルを実線にします(私のページの一部(処理ステップ)に "平均値"のデータがありません。このようにスクリプトを作成した場合、線のスタイルは私のプロットでは固定されません。
Graph Builder(
Size( 562, 477 ),
Variables( X( :date ), Y( :Mean ), Y( :Range, Position( 1 ) ) ),
Elements(
Line( X, Y( 1 ), Y( 2 ), Legend( 9 ) ),
Points( X, Y( 1 ), Y( 2 ), Legend( 10 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
9,
Properties( 0, {Line Style( "Dashed" )} ),
Properties( 1, {Line Style( "Solid" )} )
)}
),
Dispatch( {}, "Graph Builder", FrameBox, {Marker Size( 3 )} )
)
);私は次のようなスクリプトを作成しようとしています。プロパティを "文字列"(または列内の特定の値)に割り当てます。ただし、機能しません。誰でも手伝ってもらえますか?ありがとうございます。
Properties( "Mean", {Line Style( "Dashed" )} ),<BR />Properties( "Range", {Line Style( "Dashed" )} ),
これは私があなたが望むものと一致すると信じるサンプルです。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
// Set the X column to be continuous to match your sample
dt:age << modeling type( continuous );
// Set the markers
dt << color or mark by column( :sex, marker theme( solid ) );
// Create the chart
Graph Builder(
Size( 534, 490 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Y( :weight, Position( 1 ) ), Group X( :sex ) ),
Elements(
Points( X, Y( 1 ), Y( 2 ), Legend( 8 ) ),
Line( X, Y( 1 ), Y( 2 ), Legend( 10 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model( 10, Properties( 0, {Line Style( "Dotted" )} ) )}
)
)
);
このようなスクリプトを生成するための最善の方法は、サンプルを対話的に実行し、希望どおりに実行してから、赤い三角形の下から単純にスクリプトを保存することです。