大家好!
我用以下脚本、增加了辅助列来进行只有一列数据作图。
是否有更好的方法?能不加辅助列吗?谢谢!
You can create a run chart. You'll find it here: Analyze> Quality and Process> Control Chart> Run Chart
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); dt << delete columns( 1 :: N Col( dt ) - 1 );<BR /><BR /> New Column( "no" ); Column( "no" ) << Formula( Row() ); dt << run formulas; Column( "no" ) << deleteFormula; Graph Builder( Size( 534, 454 ), Show Control Panel( 0 ), Variables( X( :no ), Y( :weight ) ), Elements( Line( X, Y, Legend( 8 ) ) ) );
Depends what you mean with a better way? If this is a common thing you do, you could create an addin/add script to jmps menus/toolbar which you could ran to do this. To create column you could use something like this (and if you want to create the graph builder always when script is ran, it can also be easily added):
Names Default To Here(1); Local({dt}, dt = Current Data Table(); If(N Cols(dt) == 1, dt << New Column("no", Numeric, Ordinal, << Set Each Value(Row())) ); );
You can also add the column directly from New Columns:
Or create temporary column when using graph builder:
This column can be added to Data table if needed:
明白了、还是需要增加辅助列的。
感谢您的帮助!
In some visualizations you might be able to manage with enabling Row Order option
Thanks Experts!