Hi all,
This is a follow up to an earlier related question I posted yesterday. I would like to ask how do you update a column name to have units from another configuration file. Below is the solution code I adopted from yesterday's post except I made a modification to plot a logistic plot instead of bivariate. I found out that this works well for bivariate plots but when I try to plot a logistic plot, I am not able to see the units as part of the y-axis label. Even if the units are part of the title, that would be ok.
// This version of the script used Transform variables
// to temporarially change the name of the column just
// for the running of the Bivariate
Names Default To Here( 1 );
dt = open( "table_1.jmp" );
dt1 = open( "config_table.jmp" );
// Add the Units Column Property to the columns in the
// original data table
For( i = 1, i <= N Cols( dt ), i++,
foundRow = dt1 << get rows where(
:Column_name == Column( dt, i ) << get name & dt1
:additional_name != ""
);
If( N Rows( foundRow ) > 0,
column( dt, i ) << set property("units", eval(dt1:additional_name[foundRow[1]]));
);
);
// Now run logistic
For( i = 2, i <= N Cols( dt ), i++,
dt << Logistic( Y( Column( i ) ), X( :id ) )
);The data tables are attached.
Thanks,
Simon