Here is a crude example that should provide you a good start on what your idea is
Names Default To Here( 1 );
dt = // Open Data Table: big class.jmp
// → Data Table( "big class" )
Open( "$SAMPLE_DATA/big class.jmp" );
New Window( "Select column",
hlb = H List Box(
clb = Col List Box(
dt << get name,
all,
max selected( 1 ),
Try( vlb << delete );
hlb << append(
vlb = V List Box(
var = (clb << get selected)[1];
Eval(
Substitute(
Expr(
cp = Graph Builder(
Size( 688, 430 ),
Show Control Panel( 0 ),
Graph Spacing( 5 ),
Variables(
X(
Transform Column(
"Normal Quantile [sigma]",
Formula(
Normal Quantile(
Col Rank( __var__, :sex ) / (Col Number( __var__, :sex ) + 1),
0,
1
)
)
)
),
X(
Transform Column(
"Cumulative Prob [1=100%]",
Formula( Col Rank( __var__, :sex ) / (Col Number( __var__, :sex ) + 1) )
)
),
X( :sex ),
Y( __var__ ),
Overlay( :sex )
),
Elements( Position( 1, 1 ), Points( X, Y, Legend( 17 ) ), Smoother( X, Y, Legend( 18 ) ) ),
Elements( Position( 2, 1 ), Points( X, Y, Legend( 11 ) ), Smoother( X, Y, Legend( 12 ) ) ),
Elements( Position( 3, 1 ), Box Plot( X, Y, Legend( 16 ) ) )
)
),
Expr( __var__ ), Parse( var )
)
);
)
);
)
)
);
Jim