I don't know a direct way of getting Graph Builder to do the half Violin chart, except to add a rectangle to hide half of it. But here is an example
Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
gb = Graph Builder(
Size( 570, 510 ),
Variables( X( :sex ), Y( :height ) ),
Elements(
Box Plot( X, Y, Legend( 6 ) ),
Points( X, Y, Legend( 7 ) ),
Contour( X, Y, Legend( 8 ), Adapt to Axis Scale( 0 ) )
)
);
Report( gb )[FrameBox( 1 )] << Add Graphics Script(
5,
Description( "" ),
Pen Color( "white" );
Pen Size( 2 );
Fill Color( "white" );
Rect( -.5, 75, 0, 40, 1 );
);
Report( gb )[FrameBox( 1 )] << Add Graphics Script(
6,
Description( "" ),
Pen Color( "white" );
Pen Size( 2 );
Fill Color( "white" );
Rect( .5, 75, 1, 40, 1 );
);
Report( gb )[FrameBox( 1 )] << Reorder Segs( {1, 2, 10, 11, 5, 6} );
Jim