It did not work. Maybe I should explain what I am doing and share paste my code.
Step 1: Collect input from Column dialog
Step 2: Do Summary table with Min,Mean, Max for selected column + default column
Step 3: Create new column for Ceiling
Step 4: Do plotting using Graph builder
Code:
dt0 = current data table();
FN = dt0 << Get Name;
r = Column Dialog(
Bin = ColList( "X, Binning By", Max Col( 1 ) ),
Overlay = ColList( "Group by / Overlay by", Max Col( 1 ) ),
Split = ColList( "Y, Response",Max Col( 5 ) ),
Compare = ColList( "X-Axis Top", Max Col( 1 ) ),
HList( "Bin Size: ", BinSize = EditNumber( .1 ) ),
);
Bin = r["Bin"];
Overlay = r["Overlay"];
Split = r["Split"];
Compare = r["Compare"];
BinSize = r["BinSize"];
dts = dt0 << Summary(
Group(:Fixed, column(dt0,Overlay), column(dt0,Compare) ),
Mean( :Yield ),
Min ( column(dt0,Bin) ),
Mean( column(dt0,Bin) ),
Max ( column(dt0,Bin) ),
Min ( column(dt0,Split[1]) ),
Mean( column(dt0,Split[1]) ),
Max ( column(dt0,Split[1]) ),
Min ( column(dt0,Split[2]) ),
Mean( column(dt0,Split[2]) ),
Max ( column(dt0,Split[2]) ),
Min ( column(dt0,Split[3]) ),
Mean( column(dt0,Split[3]) ),
Max ( column(dt0,Split[3]) ),
Min ( column(dt0,Split[4]) ),
Mean( column(dt0,Split[4]) ),
Max ( column(dt0,Split[4]) ),
Min ( column(dt0,Split[5]) ),
Mean( column(dt0,Split[5]) ),
Max ( column(dt0,Split[5]) ),
statistics column name format( "column stat" ),
);
dts << Set Name (FN || " Summary");
n_Bin = Bin[1]||" Mean";
f_Bin = Column(dts, n_Bin);
col = dts << New Column("Binning", Numeric, Continuous);
Eval( Parse( Eval Insert( "col << Set Formula(Ceiling( ^f_Bin^ / ^BinSize^) * ^BinSize^)" )) );