Subscribe Bookmark RSS Feed

How to Merge Multiple Charts into One Window

mankit87

Community Trekker

Joined:

Oct 8, 2015

When I run this script, the charts will come out with separate window. How can I modify the code to make it merge to one window with both charts?

Your helps is appreciated!

10160_Code.jpg

Merge both chart in one window.

10161_Combine.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

A simple method would be to use New Window().  Put both variability charts into the argument and it should combine them into a single window:

New Window("My Report",

     Variability Chart(...);

     Variability Chart(...);

);

A example using JMP sample data is below.

Best,

M

----------------------------------------

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

New Window( "My Report",

Variability Chart(

Y( :weight ),

X( :age ),

Max Iter( 100 ),

Conv Limit( 0.00000001 ),

Number Integration Abscissas( 128 ),

Number Function Evals( 65536 ),

Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),

Std Dev Chart( 1 )

);

Variability Chart(

Y( :height ),

X( :age ),

Max Iter( 100 ),

Conv Limit( 0.00000001 ),

Number Integration Abscissas( 128 ),

Number Function Evals( 65536 ),

Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),

Std Dev Chart( 1 )

);

);

5 REPLIES
nkelleh

Community Trekker

Joined:

Dec 19, 2012

One way is to encapsulate both platform function calls within a display box object that can hold both, for example V List Box. See below for an example.

New Window( "Test",

      V List Box(

            Variability Chart(

                  Y(:height),

                  X(:age)

            ),

            Variability Chart(

                  Y(:height),

                  X(:sex)

            ),

      );

);

Solution

A simple method would be to use New Window().  Put both variability charts into the argument and it should combine them into a single window:

New Window("My Report",

     Variability Chart(...);

     Variability Chart(...);

);

A example using JMP sample data is below.

Best,

M

----------------------------------------

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

New Window( "My Report",

Variability Chart(

Y( :weight ),

X( :age ),

Max Iter( 100 ),

Conv Limit( 0.00000001 ),

Number Integration Abscissas( 128 ),

Number Function Evals( 65536 ),

Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),

Std Dev Chart( 1 )

);

Variability Chart(

Y( :height ),

X( :age ),

Max Iter( 100 ),

Conv Limit( 0.00000001 ),

Number Integration Abscissas( 128 ),

Number Function Evals( 65536 ),

Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),

Std Dev Chart( 1 )

);

);

mankit87

Community Trekker

Joined:

Oct 8, 2015

Its work! Thanks!

ms

Super User

Joined:

Jun 23, 2011

Variability chart supports multiple Y that appears to be treated independently. The below command yields an identical output as the New Window approach (except for the window title):

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

dt << Variability Chart(Y(:weight, :height), X(:age));

mankit87

Community Trekker

Joined:

Oct 8, 2015

Thank all for the prompt response ! I will try it when i get back to my workdesk.