是否可以按组名分配标记样式?以此脚本为例,我想让列“均值”行样式始终为虚线,列“范围”行样式在所有页面中都是实心的(页面依次为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" )} ) )}
)
)
);
为这样的事情生成脚本的最佳方法是以交互方式运行示例,按照您希望的方式获取它,然后简单地从红色三角形下保存脚本。