If you are planning on scripting it, then you may want to explore Summary under the Tables menu and then use Graph Builder or Distribution. Script the two together and it will be faster as well. Maybe something like this:
Names Default to Here (1);
Open("$SAMPLE_DATA/Big Class.jmp");
Data Table( "Big Class" ) << Summary(
Group( :age, :sex ),
Mean( :height ),
Mean( :weight ),
Freq( "None" ),
Weight( "None" ),
statistics column name format( "stat of column" ),
Link to original data table( 0 ),
output table name( "Big Class Summary" )
);
dts= Data Table ("Big Class Summary");
dts << Graph Builder(
Size( 534, 448 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :Mean of height ), Y( :Mean of weight ) ),
Elements( Position( 1, 1 ), Histogram( X, Y, Legend( 5 ) ) ),
Elements( Position( 1, 2 ), Histogram( X, Y, Legend( 6 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model( 5, Properties( 0, {Line Color( 0 ), Fill Color( 3 )} ) ),
Legend Model( 6, Properties( 0, {Line Color( 0 ), Fill Color( 5 )} ) )}
)
)
);
Chris Kirchberg, M.S.2
Data Scientist, Life Sciences - Global Technical Enablement
JMP Statistical Discovery, LLC. - Denver, CO
Tel: +1-919-531-9927 ▪ Mobile: +1-303-378-7419 ▪ E-mail: chris.kirchberg@jmp.com
www.jmp.com