How to plot with only one column of data? Can you add an auxiliary column?Hello everyone!
I use the following script, adding auxiliary columns to plot data with only one column.
Is there a better way? Thanks!

Scripting回复: 只有一列数据如何作图?能加辅助列吗?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 ) ) )
);
Reply: How to make a graph with only one column of data? Can you add an auxiliary column?Understand, still need to add auxiliary columns.
thanks for your help!
回复: 只有一列数据如何作图?能加辅助列吗?In some visualizations you might be able to manage with enabling Row Order option

Reply: How to make a graph with only one column of data? Can you add an auxiliary column?I imitate,
With only one column, you cannot get such a graph
回复: 只有一列数据如何作图?能加辅助列吗?JMP 15
Re: 只有一列数据如何作图?能不加辅助列吗? You can create a run chart. You'll find it here:
Analyze> Quality and Process> Control Chart> Run Chart
回复: 只有一列数据如何作图?能加辅助列吗?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:

Re: 只有一列数据如何作图?能不加辅助列吗?Thanks Experts!
