Subscribe Bookmark RSS Feed

Change All Axis Titles for Arbitrary Number of Groups

robot

Community Trekker

Joined:

Feb 27, 2012

I would like to change the all axis titles for an arbitrary number of "Group Y" variables using Graph builder.  Is this possible?  I am using JMP11.  Thanks!

// Example.

Names Default To Here( 1 );

bigClass = Open( "$SAMPLE_DATA/Big Class.jmp" );

graph = bigClass << Graph Builder(

      Show Control Panel( 0 ),

      Variables( X( :age ), Y( :height ), Y( :weight ), Group Y( :sex ) ),

      Elements(

            Position( 1, 1 ),

            Box Plot( X, Y, Legend( 16 ), Jitter( 1 ), Outliers( 1 ), Box Style( "Outlier" ) )

      ),

      Elements(

            Position( 1, 2 ),

            Box Plot( X, Y, Legend( 17 ), Jitter( 1 ), Outliers( 1 ), Box Style( "Outlier" ) )

      ),

      SendToReport(

            Dispatch( {}, "Y title", TextEditBox, {Set Text( "New Height" )} ), // Change height name.

            Dispatch( {}, "Y 1 title", TextEditBox, {Set Text( "New Weight" )} ) // Change weight name.

            // How to change all axis titles for arbitrary number of "Group Y" TextEditBox?

      )

);