Combining a Contingency graph (Fit y-by-x) with two column switchers provides a nice little interface to explore data. However, when the column selection is changed by the column switchers the name of the window is automatically changed, the name of the contingency window is always: Contingency of ... by .... . Is there any way to prevent JMP from changing the name of the window? Changing the name of the window within the script works but does not 'lock' the title, so whenever the column switcher is used the name changes again.
This is a problem for me because I use the name of the window as a reference for an external program. I also have a variable number of windows so I can't use the number of the window as a reference.
Here is an example, just use the column switcher to select a different column and see the window change names:
Open("$SAMPLE_DATA/Auto Raw Data.jmp");
Y( :Name( "Claim(Y/N)" ) ),
X( :Name( "City(Y/N)" ) ),
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 ),
Col Cum( 0 ),
Col Cum %( 0 ),
Row Cum( 0 ),
Row Cum %( 0 )
),
Tests( 0 ),
Name( "Claim(Y/N)" ),
{Sample #, Premium USD, Name( "Claim(Y/N)" ), Claim USD, Age, AgeClass,
Gender, Car Power, Rating Class, Branch, Zone, Region}
),
Name( "City(Y/N)" ),
{Sample #, Premium USD, Claim USD, Age, AgeClass, Gender, Car Power,
Rating Class, Branch, Zone, Region, Name( "City(Y/N)" )}
);
Open("$SAMPLE_DATA/Auto Raw Data.jmp");
Y( :Name( "Claim(Y/N)" ) ),
X( :Name( "City(Y/N)" ) ),
Count( 1 ),
Total %( 1 ),
Col %( 1 ),
Row %( 1 ),
Expected( 0 ),
Deviation( 0 ),
Cell Chi Square( 0 ),
Col Cum( 0 ),
Col Cum %( 0 ),
Row Cum( 0 ),
Row Cum %( 0 )
),
Tests( 0 ),
Name( "Claim(Y/N)" ),
{Sample #, Premium USD, Name( "Claim(Y/N)" ), Claim USD, Age, AgeClass,
Gender, Car Power, Rating Class, Branch, Zone, Region}
),
Name( "City(Y/N)" ),
{Sample #, Premium USD, Claim USD, Age, AgeClass, Gender, Car Power,
Rating Class, Branch, Zone, Region, Name( "City(Y/N)" )}
);