If I have created a chart with a Where() clause, how do I change that filter from a script?
I can do it with a local data filter, but can't seem to change the Where clause although I can read it using << Get Where Expr
Example:
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt << Graph Builder(
Variables( X( :weight ), Y( :height ), Color( :sex ) ),
Elements( Points( X, Y, Legend( 3 ) ) ),
Where( :sex == "F" )
);
gb << get where expr; // outputs :sex == "F"
How do change gb to be restricted to :sex == "M" later in the script?
I'm using JMP 18.2.