Index
Index using Select Where
Example 1
Summary: Creates a bubble plot with dynamic time index and no labels, selecting specific country data from an open JMP data table.
Code:
dt = Open("data_table.jmp");
dt << Select Where( :Country == 3365 );
bp = dt << Run Script( "Bubble Plot Dynamic" );
bp << Time Index( 19 );
bp << No Labels;
Code Explanation:
- Open data table.
- Select specific country.
- Run bubble plot script.
- Set time index to 19.
- Disable labels.
Example 2
Summary: Creates a bubble plot with dynamic time indexing and customizable labels, selecting specific country rows from an open data table.
Code:
dt = Open("data_table.jmp");
dt << Select Where( :Country == 3365 );
bp = dt << Run Script( "Bubble Plot Dynamic" );
bp << Time Index( 19 );
bp << No Labels;
bp << All Labels;
Code Explanation:
- Open data table.
- Select specific country rows.
- Run bubble plot script.
- Set time index to 19.
- Disable all labels initially.
- Enable all labels.
Example 3
Summary: Vizualizes data for a specific country by running a Bubble Plot Dynamic script and setting the time index to 19.
Code:
dt = Open("data_table.jmp");
dt << Select Where( :Country == 3365 );
bp = dt << Run Script( "Bubble Plot Dynamic" );
bp << Time Index( 19 );
Code Explanation:
- Open data table.
- Select rows where Country equals 3365.
- Run Bubble Plot Dynamic script.
- Set time index to 19.
Example 4
Summary: Creates a bubble plot with dynamic time index and label settings, selecting specific country data from an open data table.
Code:
dt = Open("data_table.jmp");
dt << Select Where( :Country == 3365 );
bp = dt << Run Script( "Bubble Plot Dynamic" );
bp << Time Index( 19 );
bp << No Labels;
bp << All Labels;
bp << Close Window;
Code Explanation:
- Open data table;
- Select specific country.
- Run bubble plot script.
- Set time index to 19.
- Disable labels.
- Enable all labels.
- Close window.
Index using Select Rows
Example 1
Summary: Selects and hides rows in a data table, specifically selecting rows 1 to 35 and excluding them from view.
Code:
dt = Open("data_table.jmp");
dt << Clear Select << Select Rows( Index( 1, 35 ) ) << Hide and Exclude;
Code Explanation:
- Open data table;
- Clear previous selections.
- Select rows 1 to 35.
- Hide and exclude selected rows.
Example 2
Summary: Selects and visualizes data rows from a specified range, creating a new data view with cleared selection.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( Index( 60, 90 ) );
dt2 = dt << Data View;
dt2 << Clear Select();
Code Explanation:
- Open data table.
- Select rows 60 to 90.
- Create data view copy.
- Clear selection in new view.
Index using Run Script
Summary: Creates and configures a web report with a bubble plot, including setting index title, description, timestamp, font style, logo, theme, and style.
Code:
dt = Open("data_table.jmp");
bubble1 = dt << Run Script( "Bubble Plot with Local Data Filter" );
webrpt = New Web Report();
webrpt << Add Report( bubble1 );
webrpt << Index(
Title( "test_004_case1_title" ),
Description( "test_004_case1_desc" ),
Timestamp( 1 ),
Font( "Arial Narrow", "Bold Italic" ),
Logo( "$SAMPLE_IMAGES/pi.gif" ),
Theme( "Blue" ),
Style( "SmallList" )
);
dirPath = "$TEMP\TempReports";
rptPath = webrpt << Save( dirPath );
Code Explanation:
- Open data table;
- Run Bubble Plot script.
- Create new web report.
- Add bubble plot to report.
- Set report index title.
- Set report index description.
- Include timestamp in index.
- Set font style for index.
- Add logo to index.
- Set theme and style for index.
- Save report to temporary directory.