你好,
我正在尝试创建一个分析我的数据的基本脚本。
当我按下链接到脚本的缩略图时,我希望它
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>