你好,
我正在嘗試創建一個分析我的數據的基本腳本。
當我按下鏈接到腳本的縮略圖時,我希望它
1. 要求用戶輸入範圍
2. 創建一個顯示最大值和最小值的數據表
3. 生成一個圖表,其中包含最小值、最大值和目標。
到目前為止,我所能做的就是獲取數據表或圖形的腳本,並將其單獨合併到 JMP 中的快捷方式中。 我不知道如何讓它為用戶生成查詢框,並且我無法將圖形和數據表合併在一起。 您能否建議一個可能對此有所幫助的基本教程集?
親切的問候,
埃萊娜
如果我理解正確的話,t下面的代碼可能會幫助您入門:
Names Default To Here( 1 );
// Skeleton Table
dt = New Table( "User Supplied Values",
Add Rows( 0 ),
New Column( "Minumum", Numeric, "Continuous", ),
New Column( "Target", Numeric, "Continuous", ),
New Column( "Maximum", Numeric, "Continuous", )
);
// Make a UI to allow the values to be entered
cols = dt << getColumnNames( "String", Continuous );
lub1 = Lineup Box( N Col( 1 ) );
lub2 = Lineup Box( N Col( 1 ) );
For( c = 1, c <= N Items( cols ), c++,
lub1 << Append( Text Box( cols[c] ) );
lub2 << Append( Number Edit Box( . ) );
);
nw = New Window( "Enter Values",
<<ONCLOSE> 0,
Beep();
Print("Insert code here.")
);
);</ONCLOSE>