turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- How to Merge Multiple Charts into One Window

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Oct 8, 2015 2:24 AM
(5429 views)

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!

Merge both chart in one window.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Oct 8, 2015 3:58 AM
(10096 views)

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Oct 8, 2015 3:41 AM
(5048 views)

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Oct 8, 2015 3:58 AM
(10097 views)

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Oct 10, 2015 11:38 PM
(5048 views)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Oct 8, 2015 4:23 AM
(5048 views)

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Oct 8, 2015 10:16 AM
(5048 views)

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