The Data Filter
The Data Filter gives you a variety of ways to identify subsets of data. You can interactively select complex subsets of data, hide these subsets in plots, or exclude them from analyses.
1. Select Rows > Data Filter.
Tip: In addition to the main Data Filter, you can also launch a local Data Filter within a platform report. From the red triangle menu in a report, select Script > Local Data Filter.
Figure 9.7 Initial Data Filter Window
Initial Data Filter Window
2. Select the columns that you want to use as filters, then click Add.
Note the following:
To restore your current row states when the Data Filter window is closed, select the Save and restore current row states option.
If you have a long list of columns, you can sort, show, hide, or search for columns in the list. Use the options in the Add Filter Columns red triangle menu.
By default, the Data Filter window is attached to the data table. You can detach it temporarily or persistently, as follows:
Detach it temporarily by deselecting the Use Floating Window option from the Data Filter red triangle menu.
Detach it persistently by selecting File > Preferences > Tables and deselecting the Use a Floating Window for Data Filters option.
Types of Filter Columns
There are three types of filter columns, as follows:
Continuous columns
Numeric columns whose modeling type is set to continuous. A continuous filter column is represented by a slider that spans the data range.
Categorical columns
Nominal and ordinal columns. For each categorical column, the Data Filter generates a set of distinct categories. These categories can be displayed in different forms.
Note: For categorical columns with value labels, if you want to include responses that are not present in the data, select the Include Responses Not in Data option from File > Preferences > Tables.
Multiple Response columns
Character columns that have the Multiple Response column property assigned. Each data cell of the column generally consists of multiple categories, separated by some common separator, like a comma. Since each data cell can contain more than one category, multiple response columns have a richer set of filtering options.
Filtering Modes
There are three modes of filtering: Select, Show, and Include. You can set and clear these modes using the corresponding check boxes in the Data Filter.
Note: The Select mode is not available for the local Data Filter.
Select
Shows the selected rows in the data table in a highlighted state.
You can turn off the automatic selection of this option using the Data Filter Select Check preference. See also “Changing the Row State in the Data Table After Making Data Filter Selections”.
Show
Shows the unselected rows with the Hide icon (Image shown here).
You can turn on the automatic selection of this option using the Data Filter Show Check preference. For details about row states, see the “Set Column Properties” chapter.
Include
Shows the unselected rows with the Exclude icon (Image shown here).
You can turn on the automatic selection of this option using the Data Filter Include Check preference. For details about row states, see the “Set Column Properties” chapter.
There are two additional options when filtering: Auto clear and Conditional. These options are available from the red triangle menu for the Data Filter. For more information, see “Red Triangle Options for the Data Filter”.
The Data Filter Control Panel
Once you have added columns in the initial window, the Data Filter control panel appears.
Figure 9.8 Data Filter Control Panel
Data Filter Control Panel
The main controls in the Data Filter include the following:
Clear
Clears all selections that you have made on variables in the Data Filter window.
Start Over
Closes the current Data Filter session and returns you to the original Data Filter window.
Favorites
Saves your current data filter criteria as a favorite. Once you have created a favorite, selecting it resets the current conditions to the criteria in the favorite. You can also remove the favorite. To retain favorites once the current session ends, save the data filter script by selecting one of the Script options from the Data Filter red triangle menu.
Select, Show, and Include
Inverse
Inverts the current selection state of the rows in the data table.
Note: Only the rows in the data table are inverted, not the selection in the Data Filter. To invert the selection in the Data Filter, from the column’s red triangle menu, select Invert Selection.
AND
The AND button opens the Add Filter Columns list. The and operator restricts the selection. You can add variables to the filter process at any time.
OR
The OR button opens the OR Add Filter Columns list. The or operator extends the selection. You can add variables to the filter process at any time.
Changing the Row State in the Data Table After Making Data Filter Selections
If you modify a row state that you have set in the Data Filter and subsequently alter row states in the data table, or select points in a graph or plot, the selections in the Data Filter might not match the selections in the data table. The Data Filter contains a warning message that says: “Your selection was changed in another window”. The Reset Selection button appears. Clicking the Reset Selection button changes the data table selections back to reflect the selections in the Data Filter.
Example of Modifying Selections
1. Open the Big Class.jmp sample data table.
2. Select Analyze > Distribution.
3. Select age and sex and click Y, Columns.
4. Click OK.
5. Select Rows > Data Filter.
6. Select sex and click Add.
7. In the Data Filter control panel, select all of the males by clicking on the M block.
Figure 9.9 Rows Containing Males Highlighted in Data Table and Histograms
Rows Containing Males Highlighted in Data Table and Histograms
You can see that all of the rows containing males are highlighted in the data table and in the histograms. Now you decide that you only want to see the students who are age 12.
8. In the age histogram, select the bar representing age 12.
Now the selection does not match the Data Filter selection. A warning message and a Reset selection button appear in the Data Filter window.
Figure 9.10 Data Filter Warning Message and Reset Button
Data Filter Warning Message and Reset Button
Red Triangle Options for the Data Filter
The red triangle menu next to Data Filter contains the following options:
Auto clear
If you have more than one nominal or ordinal column selected in the Data Filter, this option clears any other selections prior to making a new selection. For example, using Big Class.jmp, suppose that you have the columns sex (nominal) and age (ordinal) in your Data Filter. If you have males (M) selected for sex, and you click on an age group, say age 12, your selection of males will be automatically cleared. This means that selecting age 12 is not conditional on selecting males. Conversely, if you turn off Auto clear, you can then select both males and age 12 at the same time. Auto clear is on by default.
Conditional
Limits the categories displayed for the unselected filter column. See “Conditional”.
Use Floating Window
Keeps the Data Filter window on top of its associated data table. If you do not want the Data Filter window to remain on top, deselect this option.
Animation
Sequentially highlights the values of a single variable in the data table. See “Animation”.
Show Subset
Creates a new data table that contains only the following:
The rows identified by the Data Filter.
The columns selected in the active data table. If no columns are selected, then all columns are included.
This option is similar to the Tables > Subset command, only without subsetting options.
Save Where Clause
Builds a WHERE clause based on the value selections that you make
Script
Conditional
For filter columns with hierarchy, you can use the Conditional option to filter what appears in the column lists. For example, you could filter by region so that only the states in the selected region appear in the list.
The following example illustrates how the Conditional option helps to show the subcategories clearly, without the extra categories that do not belong.
1. Open the Cities.jmp sample data table.
2. Select Rows > Data Filter.
3. In the Data Filter window, select city, State, and Region, and then click Add.
The Data Filter window appears with a Region list and a State list.
4. Select Conditional from the Data Filter red triangle menu.
5. Select MW in the Region list.
6. Select OH from the State list.
The cities that are in Ohio and in the Midwest region are selected in the data table. In the Data Filter window, only midwestern states appear in the State list, and only cities in Ohio appear in the cities list. See Figure 9.11.
Figure 9.11 Using the Conditional Option
Using the Conditional Option
The bracketed number in front of the column name indicates the order in which the column values were selected. In Figure 9.11, Region was selected first, so it has a [1] in front of the column name. State was selected second, so it has a [2] in front of the column name.
To clear the selections and reset the order of the hierarchy, click Clear.
Animation
The animation feature sequentially highlights the values of a single variable. The variable’s values highlight in the data table. However, patterns are more interesting if you first create a plot and then animate a variable using the Data Filter to see how it behaves on the plot.
To use the animation feature, from the red triangle menu next to Data Filter, select Animation. Then select the variable that you want to animate. The highlighted frame around the variable indicates which variable is selected for animation.
Figure 9.12 Animation Control Panel in the Data Filter
Animation Control Panel in the Data Filter
The Animation Control panel (Figure 9.12) contains the following controls:
The middle button (Image shown here) starts and stops the animation. After you start the animation cycles, the button changes to a stop button (Image shown here). By default the animation begins with the first value of the topmost variable.
The backward arrow (Image shown here) moves the animation backward one cycle. Click more than once to go backward more than one cycle.
The forward arrow (Image shown here) moves the animation forward one cycle. Click more than once to go forward more than one cycle.
The square button (Image shown here) hides the Animation Control section on the Data Filter Window. Select Animation from the menu on the Data Filter title bar again to see the Animation Control.
Use the slider to adjust the speed of the animation (slower to faster).
The Animate drop-down menu contains the following options:
Forward
Highlights values from first to last.
Backward
Highlights values from last to first.
Bounce
Highlights forward and then backward repeatedly.
Save WHERE Clause
Once you have filtered variable values in the Data Filter, that information can be expressed as a JMP WHERE clause. The WHERE clause is used in JSL (JMP Scripting Language) programs to identify specific rows of data for processing or analysis. The Data Filter builds a WHERE clause based on the value selections that you make.
The options in the Save Where Clause menu include the following:
to Clipboard
Creates a WHERE clause from the filter criteria and puts it on the clipboard.
to Row State Column
Creates a row state column in the data table that has a formula equivalent to the filter criteria.
to Data Table
Creates a WHERE clause from the filter criteria and saves it as a JSL command with the current data table in a table property called Filter.
to Script Window
Creates a WHERE clause from the filter criteria and appends it to the current script text window, or creates a new script if one does not exist already.
to Journal
Creates the WHERE clause from the filter criteria and appends it to the current journal, or creates a new journal if one does not already exist.
Example of Saving a WHERE Clause
1. Open the Big Class.jmp sample data table.
2. Select Rows > Data Filter.
3. Select age, sex, and height and click Add.
Select all females who are twelve and fourteen years old and whose height is between 56 and 60 inches:
4. Hold down the CTRL key and click on the 12 and 14 blocks and the F block.
5. Click on 51 and type 56.
6. Click on 70 and type 60.
7. From the red triangle menu next to Data Filter, select Save Where Clause > to Script Window.
The WHERE clause that is created from this example appears in a script window, as follows:
Select Where(
(:age == 12 | :age == 14) & :sex == "F" & (:height >= 56 & :height <= 60)
);
Red Triangle Options for Variables
Some of the red triangle options for a variable can vary, depending upon the type of variable.
Options for All Types of Variables
The red triangle menu next to any type of variable contains the following generic options:
Delete
Removes the variable from the Data Filter control panel.
Clear Selection
Clears any selection in effect for that variable only.
Invert Selection
Deselects any selected values, and selects all values previously not selected, for that variable only.
Options for Continuous Variables
For continuous variables, values appear in a range with a slider that you can adjust in one of the following ways:
Click and drag the slider bar. You can drag from either end of the slider bar. The selected values appear above the slider bar.
Click anywhere in the empty (not selected) part of the slider to set the filter range at that point.
Click on the number to type in the value that you want.
By default, the range of values includes an equal sign, which includes the endpoints. You can remove the equal sign by holding down the SHIFT key and clicking on the or the .
The Select Missing option highlights any missing values in the data table.
Options for Nominal or Ordinal Variables
For nominal and ordinal variables, values appear in blocks, in a list, or in a menu. If the variable contains only a small number of categories, the values appear in blocks. If the variable contains a large number of categories, the values appear in a list or in a menu. However, you can change these default settings.
The following options are available for nominal or ordinal variables only:
Display Options
Changes the appearance of the display. Options may include the following:
Blocks Display shows each level as a block.
List Display shows each level as a member of a list, followed by its frequency.
Single Category Display shows each level, followed by its frequency, in a menu.
Check Box Display adds a check box next to each value. To make this the default setting, select the Data Filter Check Box Display option in File > Preferences > Tables.
Order by Count
Orders the values in decreasing sort order by count.
Find
Provides a text box where you can type a search string for the selected column. Press the Return key to perform the search. Once Find is selected, the following Find options appear in the red triangle menu:
Clear Find clears the results of the Find operation and returns the window to its original state.
Match Case uses the case of the search string to return the correct results.
Contains searches the data for values that includes the search string.
Does not contain searches the data for values that do not include the search string.
Starts with searches the data for values that start with the search string.
Ends with searches the data for values that end with the search string.
Options for Variables with the Multiple Response Property
The following options are available for variables with the Multiple Response property set:
Match none of the checked items
Selects only rows containing values that do not match any of the selections
Match any of the checked items
Selects all rows that contain values that match any of the checked values. By default, this option is selected.
Match all of the checked items
Selects only those rows with values that include all of the checked values.
Match exactly the checked items
Selects only those rows with values that exactly match the checked values.
Match only the checked items
Selects only those rows with contents exactly matching the checked values.
Note: For more details about the Multiple Response property, see the “Set Column Properties” chapter.
Format Report Tables
After running a table script there are many ways that you can format a report table to meet your needs. Right-click in a report table to access the following formatting options:
Table Style
adds borders and dividing lines to the table. Select from the following options:
Plain contains no divider lines or borders.
Bordered contains a border around the table and divider lines between columns.
Embossed on Windows, adds a three-dimensional effect to the border and divider lines. On the Macintosh, changes the border from black to gray.
Beveled on Windows, adds a three-dimensional effect and causes the corners of borders to be rounded instead of square. On the Macintosh, shades the table background gray.
Heading Separator adds a thin line under the boldface table headings.
Note: You can also change the table style using the Report table style option in File > Preferences > Reports.
Table Row Style
adds or removes borders from the rows within a table.
Columns
shows or hides columns in the table.
Note: Columns whose names begin with a tilde (~), such as ~Bias, are not applicable to the analysis that you ran and do not appear in the table, even if you place checks next to their names.
Sort by Column
Sorts the columns in descending or ascending order by the selected column.
Make into Data Table
creates a JMP data table from the report table.
Make Combined Data Table
searches the report for other tables like the one you selected and combines them into a single data table.
Make Into Matrix
creates a JMP matrix from a report table. See “Turn a Report Table Into a Matrix”.
Bootstrap
approximates the sampling distribution of a statistic. For more information, see the Basic Analysis book.
Turn a Report Table Into a Matrix
You can create a JMP matrix from a report table. For example, when working with JMP Scripting Language (JSL), you might want to access a report’s table that has been stored into a JSL variable. Or, you might want to store a report table’s values into a table property as either a table property or as a JSL assignment, which is stored within the data table and is accessible via a script or the Formula Editor.
To store a table in matrix form into a global variable, into a table property, or into a table property as an assignment:
1. Right-click anywhere in a report table.
2. Select Make into Matrix.
3. In the window that appears, tell JMP how you want to store the table.
4. (Optional) Rename the variable or property by typing a new name into the box beside Name.
Select Points in Plots
To select a point in a plot, click the point with the arrow cursor. This selects the point as well as the corresponding row in the current data table. To select multiple points, hold down the SHIFT key while you select points. A point’s label appears when you place the cursor over the point with or without clicking.
Select Rows in Graphs
All graphs and plots that represent the same data table are linked to each other and to the corresponding data table. When you click points in plots or bars of a graph, the corresponding rows highlight in the data table. The example in Figure 9.13 shows a histogram with the SPEEDYTYPE bar highlighted, and the corresponding rows highlighted in the table. You can also extend the selection of bars in a histogram by holding down the SHIFT key and then making your selection.
Figure 9.13 Highlighting Rows In a Histogram
Highlighting Rows In a Histogram
Select a Rectangular Area of Points
You can select all points that fall in a rectangular area using the arrow cursor. Click and drag the arrow to highlight points. Alternatively, you can use the brush tool. As you move the brush over the graph, points that fall within the rectangle are selected. Any points marked in the data table as hidden are not selected. See “Hide Rows and Columns” in the “Enter and Edit Data” chapter.
To select points using the brush tool:
1. Click the brush tool Image shown here in the toolbar.
2. Click and hold the cursor (now brush-shaped) in a plot. A rectangle appears.
3. Move the rectangle over points. As it passes over them, they appear larger and are highlighted both in the plot and in the active data table.
Note: To keep all points selected as you move the brush-shaped cursor over points, press the SHIFT key before you click in the plot.
Figure 9.14 Using the Brush Tool
Using the Brush Tool
4. Release the mouse. The points within the rectangle remain selected.
You can also use the brush tool to change the size of the selection rectangle. Hold down the ALT key before you click in the plot. This shape acts like a slicing tool that can traverse and highlight slices of points across either axis.
Select an Irregular-Shaped Area of Points
You can use the lasso tool to select points that fall in an irregular-shaped area. Any points marked in the data table as hidden are not selected. See “Hide Rows and Columns” in the “Enter and Edit Data” chapter.
To select points within an irregular-shaped area:
1. Click the lasso tool Image shown here in the toolbar.
2. Click and hold the cursor (now lasso-shaped) in a plot.
Note: To keep all points selected as you drag the lasso around several sets of points, press the SHIFT key before you click in the plot.
3. Drag the lasso around any set of points.
Figure 9.15 Using the Lasso Tool
Using the Lasso Tool
4. Release the mouse. JMP automatically closes the lasso and highlights the points within the enclosed area.
Use Markers
Markers are points on a graph that represent data. Once they are changed from their default setting, they also appear next to rows in the data table. The following sections show you how to change marker shape, size, color, and so on.
Change Marker Shape
You can assign a character from the JMP markers palette to replace the standard points in scatterplots. These markers also appear next to row numbers in the data table.
1. Highlight one or more markers whose shape you would like to change.
2. Right-click anywhere in the graph. In a histogram, right-click the box plot area on the right.
3. Select Row Markers.
4. Select a marker shape from the options that appear, or click Custom to enter a character to use as a marker.
Change Marker Colors
You can assign any color to highlighted rows. When you do this, the points in scatterplots appear in the color that you select from the colors palette. The active color assigned to a row appears next to the row number in the data grid.
To change the color of markers (points) on a graph:
1. Highlight one or more markers whose color you would like to change.
2. Right-click anywhere in a graph. In a histogram, right-click the box plot area on the right.
3. Select Row Colors.
4. Select one of the colors, or click Custom to apply a custom color.
Change Marker Size
To increase or decrease the size of markers (points) on a graph:
1. Right-click anywhere in a graph. Hold down the CTRL key and right-click to broadcast the command and apply it to all plots of the same type located in the same window. In a histogram, right-click the box plot area on the right.
2. Select Marker Size.
3. Select one of the marker sizes listed. Preferred Size is the size that JMP estimates to be the best size for the graph.
Change the Marker Drawing Mode and Transparency
When working with a large number of markers on a graph, the markers can appear crowded. If this is the case, you might need to alter the transparency to gain a better view. Altering the transparency might also affect the marker drawing mode, which is the mode JMP uses when it refreshes a report window. As it draws markers on a plot, it uses one of two speeds: normal or fast.
To change the marker drawing speed:
1. Right-click anywhere in a graph. In a histogram, right-click the box plot area on the right.
2. Select Marker Drawing Mode, and then select either Normal or Fast.
Normal
If JMP is in normal drawing mode and the number of markers in a graph are more than the specified threshold number, JMP automatically switches to fast mode. See “Reports” in the “JMP Preferences” chapter, for details about setting the marker threshold.
Fast
Graphs displaying a large number of markers appear faster if you set the marker drawing speed to Fast. Note that when the drawing speed is set to Fast, marker size reverts to Preferred Size, and marker transparency settings revert to the default opaqueness.
Outlined
Add Outlines Around Markers
You can add a black outline, or frame, to markers in a plot. Outlined markers are available at the medium, larger, XL, XXL, and XXXL marker size. (See “Change Marker Size”, for details.)
To add outlines:
1. Right-click a plot or graph.
2. Select Marker Drawing Mode.
3. Select Outlined.
To use an outline effectively, it is best if your marker is a color other than black.
To change marker colors:
1. Highlight the markers whose color you want to change.
2. Right-click anywhere in the graph.
3. Select Row Colors.
4. Select a marker color from the options that appear.
Marker Selection Modes
When you select markers on a graph, only the selected markers are highlighted. You can change the way markers are highlighted on the current graph. The options are applied to the top two triangles in the following figure.
Figure 9.16 Examples of Highlighted Triangular Markers
Examples of Highlighted Triangular Markers
To change the marker highlighting on the current graph:
1. Right-click anywhere in a graph and select Marker Selection Mode.
2. Select one of the following options:
Preferred Mode
the Marker Selection Mode JMP preference is applied (by default, Unselected Faded).
Unselected Faded
only the selected markers are highlighted. Everything else is dimmed by the percent specified by Faded amount for unselected markers in Preferences > Graphs.
Selected Larger
the selected markers are larger than the deselected markers.
Selected Haloed
the edges of the selected markers are outlined in blue.
Selected Outlined
the selected markers are outlined in black.
Selected Same Color
the selected markers are shaded with the same color.
For information about setting the default marker selection mode, see “Graphs” in the “JMP Preferences” chapter.
Specify Marker Transparency
You can change the transparency of markers (points) on a graph. For example, this enables you to control the visibility of overlapping points.
Note: When the drawing speed is set to Fast, marker transparency settings revert to the default opaqueness and marker size reverts to Preferred Size.
To adjust markers’ transparency:
1. In a graph, right-click anywhere and select Transparency. In a histogram, right-click the box plot area on the right and select Transparency.
2. Enter the level of transparency that you want the markers (points) to have on the graph, and click OK.
A value of 1 indicates total opaqueness and 0 indicates invisibility. Values between 1 and 0 are semi-transparent.
Exclude and Hide Markers
Using the Exclude/Unexclude command, you can exclude highlighted rows from statistical analyses. Data remains excluded until you select Rows > Exclude/Unexclude for those highlighted rows.
Note: Excluded data are not automatically hidden in plots even though they are excluded from calculations in text reports and graphs.
Using the Hide/Unhide command, you can suppress (hide) the appearance of highlighted points in scatterplots. For example, you can exclude points from analysis and then hide those same points in scatterplots. The data remain hidden until you select Rows > Hide/Unhide for highlighted hidden rows.
Note: Hidden points are not automatically excluded from statistical computations that affect text reports and graphs, even though they are not displayed in the plots. To exclude hidden observations from analyses, you must highlight them and select Rows > Exclude/Unexclude characteristic.
To exclude or hide markers (points) from analyses:
1. Highlight the marker(s) that you would like to exclude or hide.
2. Right-click anywhere in a graph.
3. Select Row Exclude or Row Hide.
Add Labels to Markers
When you position the arrow cursor over a point in a plot, the point’s label appears. By default, the label is the row number. There are three ways that you can customize the label:
You can change the label so it displays values found in one or more columns instead of the row number.
You can enable the label to appear always, not just when you position the cursor over points.
You can click the label with the Arrow tool and drag it to a new location. If a label is dragged a certain distance away from the marker, then a tail is added connecting the label to its point.
To display values found in one or more columns instead of the row number:
1. In the data table, highlight the column(s) whose values you want to appear as the label in plots.
2. Select Label/Unlabel from one of the following places:
the Cols menu
the red triangle menu in the Columns panel
the top red triangle menu in the upper left corner of the data grid
A label or yellow tag icon Image shown here beside the column name in the Columns panel indicates that points on plots are identified by the column value. If there are multiple labeled columns, their values appear on plots separated by a comma. Data remains labeled until you highlight the column and select Label/Unlabel again.
To enable the label to appear always, not just when you position the cursor over points:
1. Highlight the point(s) whose label you want to always appear in plots.
2. Right-click anywhere in a graph. In a histogram, right-click the box plot area on the right.
3. Select Row Label.
A label or yellow tag icon Image shown here beside the row number in the data table indicates that points on plots corresponding to the row appear with a label.
Change Marker Shape or Colors Based On Values
In some plots, you can change marker shapes or colors based on the values of points by adding a row legend. It is called a row legend because JMP automatically inserts a legend using row color or row marker settings. When you assign markers or colors in this way, it assigns the characteristic(s) to all points in a graph, regardless of what points you have selected. All previous marker and color settings are overwritten.
To add shapes or colors based on column values:
1. Right-click anywhere in a graph. In a histogram, right-click the box plot area on the right.
2. Select Row Legend.
3. In the window that appears (Figure 9.17), highlight the column whose values you want to color or mark. A preview of the legend is shown on the right.
Figure 9.17 Adding a Row Legend
Adding a Row Legend
4. Refine your row legend using the following options:
Colors
Lets you choose among several pre-defined color schemes.
Continuous Scale
Assigns colors on a spectrum that corresponds to the ascending or descending order of the values. Use this option when the highlighted column contains continuous values.
Reverse Scale
Reverses the scale of colors.
Markers
Lets you choose among several marker schemes.
Make Window with Legend
Creates a separate legend window that tells you what colors and shapes correspond to which value.
Save Column Property
Adds a column property that stores the selected color theme.
Save Table Property
Adds a table property that preserves the selected color and marker configuration.
Excluded Rows
Assigns colors or markers to rows that are excluded.
Most legends have one column. However, the following platforms have multi-column legends when there are more than 20 levels:
Recurrence
Oneway (for CDF Plot and all three Densities red triangle commands)
Fit Model (Standard Least Squares in Regression Plot)
Survival
Remove the Legend
After you make the legend, right-click it to change the colors and the markers or to remove the legend. To remove colors or markers, select Rows > Clear Row States in the data table.
Alter Plot and Chart Appearances
There are many ways that you can format your report to meet your needs. The sections below detail how to make changes to the graphical portions of your output reports.
Tip: If you have a touchscreen, you can pan and zoom most graphs and axes in JMP. Graphs and axes change scale and zoom out if pinched, and zoom in if stretched.
Resize Plots and Graphs
There are two main ways to resize plots and graphs: using the click and drag method or resizing it according to pixel size.
Note: You can also change the default size of a graph using the Graph Height option in File > Preferences > Graphs.
Use Click and Drag
To resize a plot or graph using the click and drag method:
1. Place the cursor on the right edge, bottom edge, or lower right corner of the plot frame. The cursor changes to a small double-arrow pointer.
2. Click and drag to change the size of the plot. When you resize, the height and width of all plots in that frame adjust independently of other frames in the same report window. Table 9.6 describes how to adjust the plot.
 
Table 9.6 Resizing Actions 
Action
Instructions
Adjust the plot frame but preserve the proportions (aspect ratio)
Hold down the SHIFT key and click and drag the corner of the frame.
Adjust a plot in 8-pixel increments
Hold down the ALT key and click and drag the corner of the frame.
Adjust all plots of the same type simultaneously
Hold down the CTRL key and click and drag the corner of one of the plots. If you do this for one scatterplot, the action is broadcast to all scatterplots in the window, and they resize together. Any other types of plots remain unchanged.
Specify Size in Pixels
To resize a plot or graph to a specific pixel size:
1. Right-click the plot or graph.
2. Select Size/Scale > Frame Size.
3. Enter the number of pixels for the frame’s height and width.
Note: For details about the other options in the Size/Scale menu, see “Scroll and Scale Axes”.
Zoom In and Out
The magnifier Image shown here lets you automatically zoom in on any area of a plot. When you click the magnifier, the point or area where you click becomes the center of a new view of the data. The scale of the new view enlarges, giving you a closer look at interesting points or patterns. You can perform any of the following actions:
Click and drag the magnifier to focus in on a particular region of the plot.
On a ternary plot, drag the magnifier to zoom the triangular axes.
Zoom repeatedly to look closer at the data.
Hold down the CTRL key and click to return to your previous state before the last zoom.
Double-click or hold down the ALT key and click the magnifier to restore the original plot.
Change Line Widths
After fitting a line to a graph, or producing a graph with a line already present, you can adjust the width of the line:
1. Right-click anywhere in a graph.
2. Select Line Width Scale.
3. Select to increase the current line width one to three times its default width. Or, select Other and specify a larger or smaller number. Select Scale with Font to increase the line size as you increase the display font size using Window > Font Sizes (Windows) and View > Make Text Bigger/Smaller (Macintosh).
Change the Background Color in a Graph
To change the background color in a graph, follow these steps:
1. Right-click anywhere in a graph. (To change only the color of a box plot, right-click the box plot area.)
2. Select Background Color.
3. Select one of the predefined colors, or create your own color.
4. Click OK.
Change the Color of Histogram Bars
To change the color of histogram bars, follow these steps:
1. Right-click anywhere in a histogram and select Histogram Color.
2. Click a color, or click Other and create your own color.
See your operating system documentation for details about creating your own colors.
Display Coordinates and Temporary Reference Lines
You can measure points and distances in graphs, or easily find the exact value, or coordinates, of points and distances on plots and graphs. To do this, click the crosshairs tool Image shown here and click and hold anywhere on a graph. The coordinate values appear where the crosshairs intersect the vertical and horizontal axis as you drag the crosshairs within a plot.
Figure 9.18 Using the Crosshairs Tool
Using the Crosshairs Tool
On a fitted line or curve, the crosshairs identify the response value for any predicted value. On a ternary plot, this tool displays triangular crosshair lines.
Scroll and Scale Axes
The hand tool (also known as the grabber tool) (Image shown here) provides a way to change the axes and view of a plot:
On a y-axis, dragging Image shown here scrolls the y-axis; dragging Image shown here or Image shown here scales the y-axis.
On an x-axis, dragging Image shown here scrolls the x-axis; Image shown here or Image shown here scales the x-axis.
You can also right-click in a plot or graph, and select Size/Scale (or Graph > Size/Scale). Choose one of the following options:
To adjust the scale of the X axis, select X Axis.
To adjust the scale of the Y axis, select Y Axis or Right Y Axis.
For details about the Frame Size option, see “Specify Size in Pixels”.
Select Size to Isometric when the x- and y-axes are measured in the same units and you want distances on the graph to be represented accurately regardless of direction.
Customize Axes and Axis Labels
Double-click a numeric axis to customize it using the Axis Specification window. Or, right-click the axis area and select Axis Settings to access the window.
Customization features in the window depend on the data type of the axis and the specific platform JMP uses to create the plot or chart. Figure 9.19 shows a typical Axis Specification window for numeric axes.
Figure 9.19 The Axis Specification Window for a Numeric Axis
The Axis Specification Window for a Numeric Axis
The following sections describe how to use the axis specification window and what tasks you can accomplish with it.
Establish the Minimum and Maximum Axis Values
For plots and charts that contain a numeric axis area, you can change the minimum and maximum values that you want the graph to display.
To change the minimum and maximum axis values while viewing a graph:
1. Double-click a numeric axis. Or, right-click and select Axis Settings. The axis specification window appears.
2. Type in a value for the minimum and maximum values that you want the graph to display.
Note: To restore the default minimum and maximum axis settings of a numeric axis, right-click a numeric axis and select Revert Axis.
3. (Optional) Select Reverse Order to reverse the axes by reversing the minimum and maximum values.
To set a default minimum and maximum axis value for a variable, which avoids making this change every time you run an analysis, see “Axis” in the “Set Column Properties” chapter.
The example on the right in Figure 9.20 is an enlargement of the point cluster that shows between 80 and 140 in the plot to the left. The enlarged plot is obtained by reassigning the maximum and minimum axis values and changing the number of minor tick marks to 1. (See “Add Minor Tick Marks”, for details.)
Figure 9.20 Rescale Axis to Enlarge a Plot Section
Rescale Axis to Enlarge a Plot Section
Change the Axis Scale Type
When viewing a graph with a numeric axis, you can change the axis scale as follows:
1. Double-click a numeric axis. Or, right-click and select Axis Settings. The Axis Specification window appears.
2. Select a scale type:
Linear
Log
Power
Geodesic
Geodesic US
Note: Specific platforms might use other scale types that are fixed and cannot be changed.
Note: If you selected a scale type of Log, type the Base to use.
Note: If you selected a scale type of Power, type the Power to use.
To set a default scale type for a variable, which avoids making this change every time you run an analysis, see “Axis” in the “Set Column Properties” chapter.
Change the Orientation for Tick Labels
You can set the orientation for tick labels as follows:
1. Double-click a numeric axis. Or, right-click and select Axis Settings. The Axis Specification window appears.
2. From the Tick Label Orientation menu, select one of the options:
Automatic
Tick labels are oriented automatically to be readable, depending on the tick increment and length of the labels.
Horizontal
Baseline at the bottom.
Vertical
Vertical with the baseline on the right.
Perpendicular
(Recommended in place of Horizontal) Horizontal for vertical axes and vertical for horizontal axes.
Parallel
(Recommended in place of Vertical) Vertical for vertical axes and horizontal for horizontal axes.
Angled
Angled at about 45 degrees.
Change the Axis Increments
While viewing a graph, you can change the axis increments:
1. Double-click a numeric axis. Or, right-click a numeric axis and select Axis Settings. The Axis Specification window appears.
2. In the text box beside Increment, type the number of increments that you want displayed.
3. If the format of the axis is Date or Time (as shown in the Format drop-down menu), another drop-down menu appears beside Increment. (See Figure 9.21.) From that box, select which format you want the increments to take.
Figure 9.21 Changing Axis Increments
Changing Axis Increments
To set a default axis increment for a variable, which avoids making this change every time you run an analysis, see “Axis” in the “Set Column Properties” chapter.
Add and Remove Axis Labels
You can add or remove labels in a numeric axis. To add an axis label:
1. Right-click a numeric axis and select Add Axis Label.
2. Type a name for the axis label. The axis area enlarges to hold the number of label lines that you enter.
This command can be used multiple times to add multiple labels. To edit the label after it has been added to the axis, click it and it will turn into an edit box.
To remove an axis label, right-click a numeric axis and select Remove Axis Label. The last label added is removed.
Change the Numeric Format of an Axis
For plots and charts that contain a numeric axis area, you can change the format of the axis. To change the numeric format while viewing a graph:
1. Double-click a numeric axis. Or, right-click and select Axis Settings. The Axis Specification window appears.
2. In the box beside Format, use the drop-down menu to select an option. See “Numeric Format Options” in the “Set Column Properties” chapter.
3. If you selected:
Date or Time from the Format drop-down menu in the previous step, use the drop-down menu to the right of the selection to select date increments for tick marks. For descriptions of options, see “Numeric Format Options” in the “Set Column Properties” chapter. You also need to specify the format of the increments, as described in “Change the Axis Increments”.
Fixed Dec from the Format drop-down menu in the previous step, a text box appears beside the Format box. Type the number of decimal places that you want JMP to display.
Note: When you change the numeric format of an axis, you do not change the numeric format of the way the values appear in the corresponding data table. To change the way a date or time appears in a data table, see “Numeric Formats” in the “Set Column Properties” chapter.
Selecting a date interval from the date increment drop-down menu divides the JMP date (number of seconds) into the appropriate units. This gives the plot scale that you want for your data. The date axis must be a column with a JMP date value and appear in the Axis Specification window in the date format found in the Column Info window. However, you can use the Axis Specification window to format the date any way that you want it to be displayed in the plot.
Change Axis Label Font
You can modify the axis label font on any axis type. When you modify it, your change only applies to the active graph. To set the default axis label font, see “Fonts” in the “JMP Preferences” chapter.
Note: Windows 7 does not support the Adobe Compact Font Format (CFF). As a result, JMP cannot render axis labels using CFF fonts (like certain OpenType fonts). Windows 8 supports CFF fonts, therefore, JMP correctly renders axis labels using CFF fonts.
To change the current font type and size:
1. Right-click an axis label.
2. Select Font.
3. Make your selections in the window.
To change the font color:
1. Right-click an axis label.
2. Select Font Color.
3. Select a color for the text from the color palette provided.
Rotate Axis Labels
You can modify the axis label on any axis type. To rotate an axis label:
1. Right-click an axis label.
2. Select Rotate Text.
3. Select which direction to rotate the text: Horizontal, Left, or Right.
To set a default axis label position for a variable, which avoids making this change every time you run an analysis, see “Axis” in the “Set Column Properties” chapter.
Copy and Paste Graph Contents
After customizing a graph by adding elements such as a fitted line, you can copy and paste the contents from one graph to another compatible graph:
1. Right-click the graph that you have customized.
2. Select Edit > Copy Frame Contents.
3. Right-click the graph to which you would like to copy the settings.
4. Select Edit > Paste Frame Contents.
Copy and Paste Axis Settings
After customizing an axis (as described in “Customize Axes and Axis Labels”), you can copy and paste your new settings to another axis:
1. Right-click the axis that you have customized.
2. Select Edit > Copy Axis Settings.
3. Right-click the axis to which you would like to copy the settings.
4. Select Edit > Paste Axis Settings.
Change the Order of Values
Data in a JMP report might not appear in the order that you prefer. To give data a specific order so it appears that way in a report, assign the column the Value Ordering property before running the analysis, as described in “Value Ordering” in the “Set Column Properties” chapter.
If your values include any of the following, they automatically appear in the appropriate order in reports:
January, February, March, April, May, June, July, August, September, October, November, December
Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec
Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
Very Low, Low, Medium Low, Medium, Medium High, High, Very High
Strongly Disagree, Disagree, Neutral, Indifferent, Agree, Strongly Agree
Failing, Unacceptable, Very Poor, Poor, Bad, Acceptable, Average, Good, Better, Very Good, Excellent, Best
Customize Tick Marks and Tick Mark Labels
On a numeric axis, you can add and remove tick marks, add and remove gridlines, and add minor tick marks. You can also modify font properties, rotate the axis labels, or add an outline box to nominal or ordinal axes’ tick mark labels. The following sections describe how to customize them.
Add Tick Marks, Grid Lines, or Labels
For plots and charts that contain a numeric axis area, you can show or hide tick marks, grid lines, or labels. To do this, double-click a numeric axis. Or, right-click a numeric axis and select Axis Settings. The Axis Specification window appears, as shown in Figure 9.22.
Figure 9.22 Show or Hide Tick Marks and Gridlines
Show or Hide Tick Marks and Gridlines
Below the check boxes, the orientation of the Tick Labels can be set by a drop-down list. Horizontal, Vertical, and Angled refer to single axes and Parallel and Perpendicular refer to paired axes, like in Multivariate plots.
To set default tick marks for a variable, which avoids making this change every time you run an analysis, see “Axis” in the “Set Column Properties” chapter.
Add Minor Tick Marks
To add tick marks to a numeric axis, or to change the number of minor tick marks that appear on a numeric axis, proceed as follows:
1. Double-click the tick mark. Or right-click it and select Axis Settings. The Axis Specification window appears.
2. In the box beside # Minor Ticks, type the number of minor tick marks that you want to appear between major tick marks.
3. Click the box to the right of Minor and below Tickmark to indicate that you want the tick marks to appear on the axis.
To set default minor tick marks for a variable, which avoids making this change every time you run an analysis, see “Axis” in the “Set Column Properties” chapter.
Adjust the Field Width of Labels
On plots and charts that contain a numeric axis area, you can adjust the width of the tick mark labels. Then they show large values with many decimal places or only a small amount of space or truncated values. If the field width is set too small, your tick mark labels appear as an ellipsis (...).
To change the field width while viewing a graph:
1. Double-click a numeric axis. Or, right-click and select Axis Settings. The Axis Specification window appears.
2. In the Width text box, type the approximate number of characters in the widest tick mark label. The maximum field width is 40 for numeric values. The maximum field width is 40 for numeric values. There is no limit for character values.
Note that increasing or decreasing the field width of tick mark labels does not change the field width for the cells containing the values in the corresponding data table. To change the field width of cells in a data table, see the section “Numeric Formats” in the “Set Column Properties” chapter.
Change Tick Mark Label Font Types and Sizes
You can modify a numeric axis tick label’s font type, size, and style (bold and italic). To change font type and size:
1. Double-click the tick label. Or, right-click it and select Axis Settings. The Axis Specification window appears.
2. Select Font, and make your selections.
Note: To make global changes to all types of axes’ font types and sizes, select File > Preferences (JMP > Preferences on the Macintosh). Click the Fonts tab, and then click Axis.
Rotate Tick Mark Labels
To rotate tick mark labels vertically or horizontally on a numeric axis:
1. Double-click the tick label. Or, right-click it and select Axis Settings. The Axis Specification window appears.
2. Modify the Tick Label Orientation.
To rotate tick marks on a nominal axis, right-click the tick label and select Rotated Tick Labels.
To rotate them back, complete the steps again.
Extend Divider Lines and Frames for Categorical Axes
Extending the vertical divider line(s) between tick labels is useful when there are many levels of a nominal or ordinal (categorical) variable.
To extend the divider line to the x-axis labels:
1. Right-click a nominal or ordinal axis.
2. Select Tick Marks > Divider Lines to add the lines, or Lower Frame to add a frame around the axis area.
Figure 9.23 Divider Lines
Divider Lines
Add Reference Lines
To add references lines to graphs, proceed as follows:
1. Double-click a numeric axis. Or, right-click a numeric axis and select Axis Settings. The Axis Specification window appears.
2. In the text box to the left of the Add button, type the Value to which you want the reference line to correspond. This is the position on the graph at which the line is placed.
3. Enter a Label for the line.
4. Further customize the reference line by choosing either of these options:
Color changes the line color.
Line Style specifies the line style.
Line Width specifies the width for the reference line.
5. Click the Add button. The value moves into the box to the right of the Add button, indicating that it will be placed on the graph.
6. To add more lines, repeat the above steps.
To set a default reference line for a variable, which avoids making this change every time you run an analysis, see “Axis” in the “Set Column Properties” chapter.
Add Geographical Images and Boundaries
Adding map images and political boundaries to graphs provides visual context to geospatial data. For example, you can add a map to the graph that displays an image of the U.S. Another option is displaying the boundaries for each state (when data includes the latitudes and longitudes for the U.S.).
The data should have latitudinal and longitudinal coordinates. Otherwise, the map has no meaning in the context of the data. The x and y axes also have range requirements based on the type of map. These requirements are described in the following sections.
Two tools are especially helpful when you are viewing a map:
The grabber tool (Image shown here) lets you scroll horizontally and vertically through a map.
The magnifier tool (Image shown here) lets you zoom in and out.
The following sections describe the map images and boundaries that you can add to a graph.
For details about adding maps, see Essential Graphing.
Drag and Drop an Image into a Graph
To add an image that you created, generate your report and then drag and drop the image from your file system onto the graph in the report. After you add the image, JMP provides several options such as resizing, formatting, and rotating an image. Right-click the image and select Image to see these options.
The following example shows a bivariate plot of wind speeds in the Chicago area. The plot on the left includes arrows to illustrate the wind direction and speed. A map image was dropped onto the plot and resized to line up the markers with the stations that provided the wind data (each dot representing a station).
Figure 9.24 Example of a Custom Map Image
Example of a Custom Map Image
Note: Repeated changes to images can degrade image quality. If you are not happy with the results of sizing, scaling, or applying filters to the image, remove the image and start again.
 
Table 9.7 Descriptions of Image Options 
Lock
Locks the image in place so it cannot be moved.
Size/Scale
Fill Graph: Resizes the image proportionately to fit the graph.
Specify Size: Resizes the image according to the values that you enter. (The units for these values are the same as your graph axes.)
Crop: Crops the image according to the values that you enter. (The units for these values are the same as your graph axes.) For example, the left edge might be positioned at 50. You type 60 next to Left, and the portion of the image between 50 and 60 is removed from the image.
Flip
Flip vertical: Turns the image upside down.
Flip horizontal: Flips the image left to right.
Flip both: Flips the image both horizontally and vertically.
Rotate
Rotates the image the specified number of degrees. Enter a negative value to rotate the image counterclockwise.
Transparency
Changes the marker transparency level. Type a value between 0 and 1 (where 1 is completely opaque).
Filter
Provides filters found in many graphic editing programs to change the appearance of the image. Select a filter repeatedly to increase its effects on the image.
Contrast: Optimizes the light and dark colors. Larger values lighten the image.
Despeckle: Removes pixels that do not blend with surrounding pixels. For example, a black pixel surrounded by white pixels is converted to a white pixel.
Edge: Darkens everything but the outlines of objects.
Enhance: Reduces the contrast between pixels in a noisy image.
Gamma: Balances the brightness of an image and the red, green, and blue (RGB) ratios. Larger values create a lighter image.
Gaussian Blur: Blurs pixels by the specified radius. Larger radii create a smoother image. (In JSL, you can also specify the sigma value. Larger sigma values create a smoother image.)
Median: Replaces each pixel color value with the median value of the surrounding pixels.
Negate: Converts each pixel to its complementary color (such as pink to green and white to black).
Normalize: Removes a percentage of the top and bottom color values. The color values are then stretched to fill the remaining image. This process increases the intensity of the colors.
Reduce Noise: Finds the minimum and maximum color values and replaces them with values more consistent with the surrounding pixels. Larger values create a smoother image.
Sharpen: Makes the edges of pixels more distinct.
Remove
Removes the image from the report.
Extract Data from an Image
JMP provides the ability to extract information from images into a data table and then analyze that information. Researchers at WildTrack.org analyze digital footprint photos in JMP to track endangered species. They drag and drop a footprint image into a JMP report and draw data points to capture the size and shape of the print. A JMP Scripting Language (JSL) script extracts those measurements into a data table. At that point, the researchers can analyze the data and determine whether the footprint is from a new animal. This method helps them track populations of endangered species in specific regions of the world.
Figure 9.25 Example of Extracting and Analyzing Data
Example of Extracting and Analyzing Data
The details for implementing this feature are beyond the scope of this book, because the needs of the user vary widely. For details about writing JSL scripts, see the Scripting Guide.
Add Graphics Elements to a Report
You can add text notes, lines, polygons, ovals, and rectangles to a report using graphics tools found in the toolbar.
Annotations
You can add editable text notes to a JMP report using the annotate tool Image shown here. To add an annotation:
1. Select the annotate tool Image shown here from the Tools menu or toolbar.
2. Click the location in the window where you want to add the annotation. Or, click and drag to size the annotation note. A white editable text box appears.
3. Enter text.
4. Click outside the annotation. The annotation turns yellow.
5. (Optional) Right-click the annotation to access the following options:
Background Color
Provides you with a color palette, from which you can select the background color for the annotation.
Text Color
Provides you with a color palette, from which you can select the color for the annotation’s text. The color of the font also defines the color of the annotation outline. If you select the same color for both the background and the font, the font does not show except for black and white. A black font on a black background changes to white, and a white font on a white background appears black.
Font
Lets you change the current font type, style, and size. To change the default font, see “Fonts” in the “JMP Preferences” chapter.
Tag Line
Attaches a line to the annotation that points to a place in the text, as shown below. To move the line with the annotation to a new position, press the CTRL key and drag the annotation.
Filled
Removes the background color from the annotation so it looks transparent. A transparent note is handy for putting titles and footnotes on a graph.
Editable
Makes the annotation editable by double-clicking on it.
Reanchor
Reanchors the annotation.
Delete
Deletes the entire annotation.
Note: When adding multiple annotations, press the SHIFT key when selecting the annotation tool for the first time. This causes subsequent clicks to add an annotation, and you do not have to select the annotate tool from the toolbar before the addition of each annotation.
Once you have added an annotation, you can do the following:
 
Table 9.8 Using Annotations 
Action
Instructions
Add to or edit an annotation
Click inside the text box.
Move an annotation
Click inside the annotation box and drag it. When an annotation is moved, it becomes selected, as indicated by a double blue line with handles around the perimeter.
Resize an annotation
Place the cursor on the handle of a selected note (showing in the middle of the edges and in the corners). The cursor appears as a single crossed arrow; drag to resize the annotation.
Delete an annotation
Highlight the annotation by clicking the handle of a note. Then press the Delete (or Backspace) key.
Add Shapes
You can add editable lines, polygons, and simple shapes (ovals or rectangles) to a JMP report using the drawing tools Image shown here Image shown here Image shown here. The following sections describe how each of these tools can be used.
Note: Each graphics tool remembers the most recent options chosen. This is useful if you need many annotations or other graphics with the same characteristics. For example, suppose you want many thick green lines with an arrow on one end. Create a line the way you want it, set the options, and subsequent lines appear with those options in effect. The options persist until you change them.
Add a Line
To add a line to a report window:
1. Click the line tool Image shown here in the tool palette.
2. Click and drag where you want to insert the line. The line appears selected, showing handles on both ends.
3. Click and drag the line to move it.
4. Click a handle and drag to rotate the line.
5. Right-click a line for a menu of options to tailor the appearance of the line, as follows:
Point to and Point from
Places arrows on either end (or both ends) of the line.
Thick
Alternately displays the width of a line as thick or thin. A line is thin by default.
Dashed
Alternately displays a line as dashed or solid. A line is solid by default.
Color
Displays the JMP color palette to change the color of the shape.
Reanchor
Reanchors the shape.
Delete
Removes the shape from the report surface. You can also remove the shape by selecting it and then pressing the DELETE (or BACKSPACE) key.
Add a Polygon or Bezier Curve
To add a polygon (or bezier curve) to a report window:
1. Click the polygon tool Image shown here in the tool palette.
2. Click to create the beginning point for the first side of a polygon.
3. Click again at the location where you want to complete the first side and begin an adjacent side. A square selection box with handles appears around the polygon area.
4. Click a third time to complete the second side.
5. Continue this process until the polygon is the way you want it. Each time a side is complete, the selection box adjusts to encompass the polygon sides.
6. Double-click to release the polygon tool.
Once you have added a polygon, you can perform the following actions:
 
Table 9.9 Working with Polygons 
Action
Instructions
Select or deselect the polygon
Click the edge of a completed polygon.
Resize the polygon
Select it and drag one of the selection box’s handles.
Move the polygon
Click between the box’s handles and drag the selection box.
Change the number of sides of the polygon
Click and drag the sides to form the new shape.
Right-click a polygon for a menu of options to tailor its appearance, as follows:
Filled
Alternately fills or empties the area of the shape.
Raised
Displays thick shaded lines around the shape. If the shape is also filled, the lower edge of the figure appears raised, giving it a three-dimensional look.
Smooth
Smooths the vertices of a polygon to produce a Bezier curve. The smoothed figure is reshaped and resized the same way as the polygon, and can be filled and raised.
Closed
Alternately opens or closes the last segment of a polygon.
Color
Displays the JMP color palette to change the color of the shape’s sides, and its fill color when the Filled option is in effect.
Reanchor
Reanchors the shape.
Delete
Removes the shape from the report. You can also remove the shape by selecting it and then pressing the Delete (or Backspace) key.
Add an Oval or Rectangle
To add an oval or rectangle to a report window:
1. Click the simple shape tool Image shown here in the tool palette.
2. Click and drag where you want to insert the shape. An oval appears with a selection box around it.
3. (Optional) To turn the oval into a rectangle, right-click on the oval and select Shape > Rectangle.
4. Double-click to release the simple shape tool.
Once you have added the shape, you can do the following:
Select the shape and drag one of the selection box handles to reshape or resize.
Click and drag an edge of the selection box (located between the handles) to move it.
Select the shape, and then right-click it for a menu of options to tailor its appearance, as follows:
Filled
Alternately fills or empties the area of the shape.
Raised
Displays thick shaded lines around the shape. If the shape is also filled, the lower edge of the figure appears raised, giving it a three-dimensional look.
Shape
Displays a submenu whose options transform the shape into either an oval or a rectangle when selected.
Color
Displays the JMP color palette to change the color of the shape’s sides and its fill color when the Filled option is in effect.
Reanchor
Reanchors the shape
Delete
Removes the shape from the report. You can also remove the shape by selecting it and then pressing the Delete (or Backspace) key.
Add Graphics
To enhance your graphs with logos, pictures, or any other type of graphic, you can paste it into a report in .bmp, .jpeg, or .png format. You can also drag and drop graphics into reports.
To add graphics:
1. Open the graphic file and select the graphic. Copy it to the computer’s clipboard.
2. Right-click inside a graph.
3. Select Edit > Paste Background Image. The graphic is inserted at the point in the graph that you right-clicked.
You can also add the graphic to the end of a report window: copy the graphic onto your computer’s clipboard, making sure the report is the active window and selecting Edit > Paste.
Customize Graphical Elements
Graphs consist of markers, lines, text, and other graphical elements that you can customize. For example, in a Scatterplot Matrix graph, you might want to highlight data points in one of the bivariate graphs with a pink solid marker. In a Contour Plot graph, you can increase the width or transparency of the contour lines.
Example of Customizing a Contour Plot
1. Open the Little Pond.jmp sample data table.
2. In the Table panel, click on the red triangle next to Contour Plot and select Run Script.
3. Click on the red triangle next to Contour Plot for Z and deselect Fill Areas.
Figure 9.26 Contour Plot Before Customization
Contour Plot Before Customization
4. Right-click on the plot and select Customize.
The Customize Graph window appears.
Figure 9.27 Customize Graph Window
Customize Graph Window
5. Click on Contours.
6. Change the Line Width to 3.
7. Click on Boundary.
8. Change the Line Width to 2.
9. Click on the color next to Line Color and select a shade of green.
10. Click OK.
Figure 9.28 Customized Contour Plot
Customized Contour Plot
The graphical elements that you can customize differ on each graph. For example, in a Control Chart graph, there are three line elements (Center Line, Limits, and Connect Line). In other graphs, the line element might be named Line or Custom.
To customize graphical elements in the current graph:
1. Right-click the graph and select Customize.
2. Select the element that you want to change, and then modify the properties.
Your changes are immediately shown on the graph.
3. Click OK to save your changes to the current graph.
Each element can include properties for line color, marker style and size, text style, and so on. Here are some common properties:
Line Color
Changes the color of the line. Click to select any color in the window. Right-click to choose from more colors.
Line Style
Changes the style of the line. Click to select one of five different styles.
Line Width
Changes the width of the line. Click in the box and enter the desired line width in points.
Marker
Changes the marker shape or size. Click to change the shape. Right-click to change the size. For more information about markers, refer to “Use Markers”.
Arrow
Adds an arrowhead to a line at either None, Start, End, or Both ends of the line.
Line of Fit
Changes the color, width, or style of the line.
Text Color
Changes the color of the text.
Font
Changes the font, style, and point size of the text.
Text Style
Changes the text alignment to centered, left-aligned, or right-justified. The Fill option applies the selected color to the background.
Fill Color
Changes the color of objects such as box plots and Fit Confidence regions.
Transparency
Changes the marker or label transparency. Enter the level of transparency to draw markers (points) on the graph. The degrees of opacity ranges from 0 (clear) to 1 (opaque). For more information about changing the transparency of markers, see “Specify Marker Transparency”.
Create Scripts for Graphical Elements
In addition to customizing graphical elements, you can write JSL scripts that add elements. These scripts run when you display the graph. You can write the scripts from scratch, or you can select from the following lists of commands and scripts, accessed by clicking on the Add a new script button Image shown here:
Use the Templates list to insert a single JSL command. For example, the Polygon option inserts the Polygon command. The text enclosed in underscores are placeholders for point values, which you replace with your own values.
Polygon([_x0_, _x1_, ... ], [_y0_, _y1_, ...]);
Use the Samples list to insert a script that creates elements such as bubble plots and sine waves. In this list, the Polygon option shows examples of the Transparency, Fill Color, and Polygon values, which you replace with your own values.
Figure 9.29 The Polygon Sample Script
The Polygon Sample Script
In some graphs, you can view the JSL that creates graphical elements. Figure 9.30 shows the Group Label script for a Discriminant Analysis graph. The script defines markers and text for group labels. The commands included in these built-in scripts cannot be modified or deleted. You can insert commands from the Templates or Samples list, but you cannot click in the window and type new commands.
Figure 9.30 Example of JSL that Creates Group Labels
Example of JSL that Creates Group Labels
For information about JSL, see the Scripting Guide book.
To create a graphics script:
1. Right-click on the graph and select Customize.
2. Click the Add a new script button (Image shown here) to create a new script.
The default name, Script, is highlighted.
3. With the default name highlighted, type a more descriptive name, and then press ENTER. (If you already moved the cursor and the name is no longer highlighted, double-click Script, and then type the new name.)
4. Do one or more of the following:
Enter JSL in the Properties window.
Select one or more JSL commands from the Templates list, and modify the placeholder text. For example, change the Pen Color option from “blue” to “red.”
Select one or more sample scripts from the Samples list and modify, if necessary.
5. (Optional) Click Apply to update the graph with your changes without closing the window. Unlike other property changes, script changes to not take effect until you click Apply or OK.
6. Click OK to save your changes.
One of the following occurs:
The element that you created appears on the graph.
An error message appears if the script contains an error. Select View > Log to read about the error, and then correct the script.
To delete a script that you created, select the script and then select the Delete selected script button (Image shown here).
Change the Drawing Order of Graphical Elements
The graphical elements are drawn in the order in which they are listed. The first element on the list is drawn first, so it appears behind all other graphical elements. If one element hides another, you can rearrange the order of the elements.
To rearrange graphical elements:
1. Right-click the graph and select Customize.
2. Select the element that you want to move.
3. Click the Move up in drawing order button (Image shown here) or Move down in drawing order (Image shown here) button one or more times until the elements are in the order in which you want them drawn.
4. Click OK.
Save Your Customizations
The graph customizations apply to the current graph and are also used when you redo an analysis. To re-create your graph at a later time with its customizations, select Script from the red triangle menu, and then select one of the Save options. For example, you can save the script to the data table, which applies your customized properties each time you run the script. See “Save Your Analysis as a Script” in the “Save and Share Data” chapter for details.
Copy Your Customizations
You can copy your customizations from one graph to another. All objects that you created or modified, such as colored text or lines, are pasted to the other graph.
To copy lines from one graph to another, see “Copy and Paste Graph Contents”.
To copy other objects:
1. Right-click in the graph with custom elements and select Edit > Copy Customizations.
2. Right-click in the destination graph and select Edit > Paste Customizations.
Note: The customizations are pasted into all similar graphs when you press CTRL, click, and then paste.
The objects appear on the current graph and are added to the list of customized elements.
Note: The copy customizations feature copies only the elements that you added or modified. It does not copy the other contents of the graph.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.166.37