cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
mankit87
Level I

How to Merge Multiple Charts into One Window

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

Re: How to Merge Multiple Charts into One Window

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 )
);
 
);

 

View solution in original post

5 REPLIES 5
nkelleh
Level III

Re: How to Merge Multiple Charts into One Window

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)
            ),
      );
);

 

Re: How to Merge Multiple Charts into One Window

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
Level I

Re: How to Merge Multiple Charts into One Window

Its work! Thanks!

ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to Merge Multiple Charts into One Window

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
Level I

Re: How to Merge Multiple Charts into One Window

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