World Statistics Day was yesterday, but we’re celebrating all week long! This celebration means acknowledging the impact statistics has on our world. Who is your favorite statistician? Share with us who they are and why they top your favorites list.
Choose Language Hide Translation Bar
Highlighted
paulkuenzi
Level I

Is it possible to display selected data directly on the graph builder?

What I'm looking for is something that looks like this:

12305_pastedImage_0.png

Thanks,

Paul

1 REPLY 1
Highlighted
txnelson
Super User

Re: Is it possible to display selected data directly on the graph builder?

Here is a script that does what you want.  The example uses Graph Builder with the data table below as you imagined.  You can also see other examples for the New Data Box() in the scripting index:

    Help==>Scripting Index

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/big class.jmp" );

New Window( "test",

       V List Box(

              gb = dt << Graph Builder(

                     Size( 533, 483 ),

                     Show Control Panel( 0 ),

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

                     Elements( Bar( X, Y, Legend( 10 ) ) )

              ),

              dtv = dt << New Data Box()

       )

);

dtv << close side panels( 1 );


12309_pastedImage_0.png

Jim
Article Labels

    There are no labels assigned to this post.