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;