JSL:行状态赋值我对行状态的想法和实现还是陌生的。
谁能告诉我选择数据表的前 50 行并将随机标记(最好是各种标记和颜色)和颜色应用为行状态的语法?
对此,我真的非常感激。 谢谢
回复:JSL:行状态分配
dt = Open( "$sample_data/big class.jmp" );
// http://www.jmp.com/support/help/Row_State_Functions.shtml
dt << setrowstates(
J( N Rows( dt ), 1/*cols*/,
Random Integer( 0, 15 ) * 16 // marker bits 4-7
+ Random Integer( 0, 127 ) * 256 // color bits 8-14
)
);
Data table with row states set to random colors and markersData table with row states set to random colors and markers行状态设置为随机颜色和标记的数据表
回复:JSL:行状态分配这是一个处理 Big Class 示例数据表的示例脚本。我认为它会给你一个关于如何做你所要求的想法
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
// To color the first 20 rows, the rows outside of that
// limit need to be excluded from the coloring
dt << select where(Row()>20);
dt << hide and exclude(1);
dt << color or mark by column("sex", marker theme(hollow));
dt << color or mark by column("age");
dt << hide and exclude(0);
dt << clear select;