是否可以按組名分配標記樣式?以此腳本為例,我想讓列“均值”行樣式始終為虛線,列“範圍”行樣式在所有頁面中都是實心的(頁面依次為graph的一些過程步驟。我的頁面中的一些(處理步驟)沒有“均值”數據。如果我這樣編寫腳本,則線條樣式不會固定在我的所有情節中。
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" )} ) )}
)
)
);
為這樣的事情生成腳本的最佳方法是以交互方式運行示例,按照您希望的方式獲取它,然後簡單地從紅色三角形下保存腳本。