NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
Show Control Panel( 0 ),
Variables(
X( :age ),
Y( :height ),
Y( :weight, Position( 1 ), Side( "Right" ) )
),
Elements(
Points( X, Y( 1 ), Legend( 5 ) ),
Smoother( X, Y( 1 ), Legend( 6 ) ),
Points( X, Y( 2 ), Legend( 7 ) ),
Smoother( X, Y( 2 ), Legend( 8 ) )
)
);
Wait(3);
Report(gb)[GraphBuilderComponentBox(17)] << AlignTicksWithLeftAxis;