Answer
Steps to reproduce using the interface
- Open the Broken Time Axis.jmp data table
- Graph—>Graph Builder
- Drop Group into Overlay role
- Drop Weeks on X-axis
- Drop Years on X-axis
- Drop CD4+ T-lymphocyte counts on Y-axis
- Adjust Graph Spacing
- Adjust X-Axis 0-15, increment 3
- Adjust other X-Axis 0.5-12, increment 1, best format
- Remove graph title
- Click Done
Broken Time Axis GraphBroken Time Axis Graph
JSL to reproduce using a script
//Broken X-axis
Names Default To Here(1);
Clear Log();
dtbroken_2# = Open( "Broken Time Axis.jmp" );
dtbroken_2# << Graph Builder(
Size( 387, 294 ),
Show Control Panel( 0 ),
Graph Spacing( 10 ),
Variables(
X( :Weeks ),
X( :Years ),
Y( :Name( "CD4+ T-lymphocyte counts" ) ),
Overlay( :Group )
),
Relative Sizes( "X", [90 222] ),
Elements(
Position( 1, 1 ),
Points( X, Y, Legend( 21 ) ),
Line( X, Y, Legend( 25 ) )
),
Elements(
Position( 2, 1 ),
Points( X, Y, Legend( 23 ) ),
Line( X, Y, Legend( 26 ) )
),
SendToReport(
Dispatch(
{},
"Weeks",
ScaleBox,
{Min( -0.387931034482759 ), Max( 14.6120689655172 ), Inc( 3 ),
Minor Ticks( 0 )}
),
Dispatch(
{},
"Years",
ScaleBox,
{Format( "Best", 12 ), Min( 0.5 ), Max( 11.6398305084746 ), Inc( 1 ),
Minor Ticks( 0 )}
),
Dispatch(
{},
"CD4+ T-lymphocyte counts",
ScaleBox,
{Min( 0 ), Max( 1211 ), Inc( 200 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model( 21, Base( 0, 25, 0 ), Base( 1, 25, 1 ) )}
),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "" )} )
)
);