- I suggest you take the time to read the Scripting Guide, found in the JMP Documentation Library, available under the Help pull down menu.
- Here is a simple example of selecting a column in a data table and then adding it to the Graph Builder script.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Col List Box Example 1", << modal,
clb = Col List Box( all, width( 250 ), maxSelected( 1 ),
selectedCol = clb << get selected )
);
Graph Builder(
Size( 525, 448 ),
Show Control Panel( 0 ),
Variables( X( eval(selectedCol) ), Y( :height ) ),
Elements( Box Plot( X, Y, Legend( 4 ) ) )
);
Jim