JMP App
JMP App using Run Script
Example 1
Summary: Creates and configures a bubble plot report in JMP, including setting window titles and combining windows into an application.
Code:
dt = Open("data_table.jmp");
bp = dt << Run Script( "Bubble Plot By State" );
If( Host is( "Windows" ),
Main Menu( "File:New:Application" );
windows = Get Window List();
closeMe = windows[N Items( windows )];
closeMe << Close Window;
);
app = JMP App();
app << Set Name( "Bubble Plot App" );
app << Combine Windows( {bp << Report, dt} );
(app << Get Modules)[1] << Set Window Title( "My Bubble Plot Report" );
app << Run;
Code Explanation:
- Open data table.
- Run bubble plot script.
- Check if host is Windows.
- Create new application.
- Get window list.
- Identify last window.
- Close last window.
- Create JMP application.
- Set application name.
- Combine windows into app.
Example 2
Summary: Creates and configures a JMP application with a bar chart report, combining data table and chart in a single window, and setting the window title.
Code:
dt = Open("data_table.jmp");
ch = dt << Run Script( "Graph Builder Bar Chart" );
If( Host is( "Windows" ),
Main Menu( "File:New:Application" );
windows = Get Window List();
closeMe = windows[N Items( windows )];
closeMe << Close Window;
);
app = JMP App();
app << Set Name( "Chart App" );
app << Combine Windows( {ch << Report, dt} );
(app << Get Modules)[1] << Set Window Title( "My Chart Report" );
app << Run;
Code Explanation:
- Open data table.
- Run Graph Builder Bar Chart script.
- Check if host is Windows.
- Create new application from File menu.
- Get list of open windows.
- Identify last window in list.
- Close identified window.
- Create new JMP application.
- Set application name to "Chart App".
- Combine chart report and data table into app.
- Set first module's window title to "My Chart Report".
- Run the application.
Example 3
Summary: Creates and configures a contour plot application, combining report and data table, and setting window title.
Code:
dt = Open("data_table.jmp");
cp = dt << Run Script( "Contour Plot" );
If( Host is( "Windows" ),
Main Menu( "File:New:Application" );
windows = Get Window List();
closeMe = windows[N Items( windows )];
closeMe << Close Window;
);
app = JMP App();
app << Set Name( "Contour Plot App" );
app << Combine Windows( {cp << Report, dt} );
(app << Get Modules)[1] << Set Window Title( "My Contour Plot Report" );
app << Run;
Code Explanation:
- Open data table.
- Run contour plot script.
- Check if host is Windows.
- Create new application.
- Get window list.
- Identify last window.
- Close last window.
- Create new JMP app.
- Set app name.
- Combine report and data table.
Example 4
Summary: Creates and configures a JMP application, combining a report and data table windows, and closing unnecessary windows.
Code:
dt = Open("data_table.jmp");
ish = dt << Run Script( "Diagram" );
If( Host is( "Windows" ),
Main Menu( "File:New:Application" );
windows = Get Window List();
closeMe = windows[N Items( windows )];
closeMe << Close Window;
);
app = JMP App();
app << Set Name( "Diagram App" );
app << Combine Windows( {ish << Report, dt} );
(app << Get Modules)[1] << Set Window Title( "My Diagram Report" );
app << Run;
Close( dt, no save );
Window( "data_table - Diagram of Child by Parent" ) << Close Window;
Window( "My Diagram Report" ) << Close Window;
Code Explanation:
- Open data table.
- Run Diagram script on data table.
- Check if host is Windows.
- Create new application.
- Get list of open windows.
- Identify last window.
- Close last window.
- Create new JMP application.
- Set application name.
- Combine report and data table windows.
Example 5
Summary: Creates and configures an overlay plot application, combining a graph builder report with a data table, and setting window titles for interactive exploration.
Code:
dt = Open("data_table.jmp");
op = dt << Run Script( "Graph Builder Overlay Plot" );
If( Host is( "Windows" ),
Main Menu( "File:New:Application" );
windows = Get Window List();
closeMe = windows[N Items( windows )];
closeMe << Close Window;
);
app = JMP App();
app << Set Name( "Overlay Plot App" );
app << Combine Windows( {op << Report, dt} );
(app << Get Modules)[1] << Set Window Title( "My Overlay Plot Report" );
app << Run;
Code Explanation:
- Open data table;
- Run script for graph builder.
- Check if host is Windows.
- Create new application from file menu.
- Get list of open windows.
- Identify last window opened.
- Close the last window.
- Create new JMP application.
- Set application name.
- Combine graph and data table into app.
- Set window title for first module.
- Run the application.
Example 6
Summary: Creates and configures a Pareto Plot application, combining data table and report in a new JMP app.
Code:
dt = Open("data_table.jmp");
pp = dt << Run Script( "Pareto Plot" );
If( Host is( "Windows" ),
Main Menu( "File:New:Application" );
windows = Get Window List();
closeMe = windows[N Items( windows )];
closeMe << Close Window;
);
app = JMP App();
app << Set Name( "Pareto Plot App" );
app << Combine Windows( {pp << Report, dt} );
(app << Get Modules)[1] << Set Window Title( "My Pareto Plot Report" );
app << Run;
Code Explanation:
- Open data table.
- Run Pareto Plot script.
- Check if host is Windows.
- Create new application.
- Get list of open windows.
- Identify last window.
- Close last window.
- Create new JMP app.
- Set app name to "Pareto Plot App".
- Combine Pareto plot and data table in app.
- Set first module window title to "My Pareto Plot Report".
- Run the app.