Example Program and Statement Details

Example Graph

The following graph was generated by the Example Program:
Example Box Plot Graph

Example Program

proc template;
  define statgraph boxplot;
    begingraph;
      entrytitle "City Mileage for Vehicle Types";
      layout overlay;
        boxplot y=mpg_city x=type /
          datalabel=make spread=true;
      endlayout;
    endgraph;
  end;
run;

proc sgrender data=sashelp.cars template=boxplot;
  label type="Vehicle Type";
run;

Statement Summary

The BOXPLOT statement displays a single box if given just a Y argument. It displays multiple boxes if given both Y and X arguments and X has more than one unique value.
By default for numeric or character columns, the category (X) axis is TYPE=DISCRETE. You can override the default and set the TYPE= to LINEAR or TIME in the parent layout, provided that the X column is numeric. The axis for the analysis (Y) column is always LINEAR. When the X axis is LINEAR, you must use the INTERVALBOXWIDTH= option to specify the box width.
When ORIENT=VERTICAL, the X (or X2) axis is used for the X column and the Y (or Y2) axis is used for the Y column. When ORIENT=HORIZONTAL, the X (or X2) axis is used for the Y column and the Y (or Y2) axis is used for the X column.
Two basic box plot representations can be drawn with the BOXPLOT statement: a schematic (Tukey) box plot and a skeletal box plot. See the EXTREME= option for details.
The following figure illustrates the box plot elements:
Box Plot Elements
As shown in the figure, the bottom and top edges of the box are located at the 25th and 75th percentiles of the sample. Within the box, you can display the median (50th percentile) as a line and the mean as a marker (see DISPLAY= option).
You can also display markers and data labels for outliers. Outliers are observations that are more extreme than the upper and lower fences (). Outliers that are beyond upper and lower far fences () are called FAR OUTLIERS and can also be identified and labeled. From a graphical perspective, the location of fences along the axis are known, but there is no line or marker that displays a fence. (See DISPLAY=, LABELFAR=, and DATALABEL= options).
Finally, you can control the range represented by the whiskers. By default, the whiskers are drawn from the upper edge of the box to the MAX value, and from the lower edge of the box to the MIN value. (See the EXTREME= option.)

Arguments

Y=numeric-column | expression
specifies the column for the Y values. This argument is required.
X=column | expression
specifies the column for the X values. This column is used to create a box plot for each unique X value and is optional.

Options

Statement Option
Description
Specifies the width of a box as a ratio of the maximum possible width.
Specifies the shape at the ends of the whiskers.
Specifies the width of the group clusters as a fraction of the midpoint spacing.
Specifies that a connect line joins a statistic from box to box.
Specifies the properties of the line connecting multiple boxes.
Specifies the labels of the outliers.
Specifies the color and font attributes of the outlier labels.
Specifies the degree of the transparency of the box outlines, box fill, whiskers, mean, median, caps, connect lines, and outliers, if displayed.
Specifies an amount to offset all boxes from the discrete X ticks.
Specifies the box plot features to display.
Specifies the statistics to be displayed for each box.
Specifies whether the whiskers can extend beyond the fences.
Specifies the appearance of the interior fill area of the boxes.
Specifies a numeric column that provides frequencies for each observation read.
Creates a box plot for each unique group value of the specified column.
Specifies how to display the boxes that represent group values for the coordinate pairs.
Specifies the ordering of the groups within a category.
Specifies whether missing values of the group variable are included in the plot.
Specifies indices for mapping line attributes (color and pattern) to one of the GraphData1 - GranphDataN style elements.
Specifies the box width when an interval category (X) column is specified.
Specifies whether all outliers or only far outliers are labeled.
Specifies the label for a legend.
Specifies the attributes of the maker that represents the mean values.
Specifies the properties of the line that represents the median values.
Assigns a name to a plot statement for reference in other template statements.
Specifies the orientation of the Y axis and of the boxes.
Specifies the attributes of the outlier makers.
Specifies the information to display when the cursor is positioned over an outlier.
Specifies the properties of the box outlines.
Specifies one of five definitions used to calculate percentiles.
Specifies that the data columns and plot type for this plot be used for determining default axis features.
Specifies whether outliers with the same value are spread out to avoid overlap.
Specifies the information to display when the cursor is positioned over a box or whisker in the box plot.
Specifies display formats for the information that is defined by the tooltip roles.
Specifies display labels for the information that is defined by the tooltip roles.
Specifies the line properties of the whiskers and caps.
Specifies whether data are mapped to the primary X (bottom) axis or the secondary X2 (top) axis.
Specifies whether data are mapped to the primary Y (left) axis or the secondary Y2 (right) axis.
BOXWIDTH=number
specifies the width of a box as a ratio of the maximum possible width.
Default: 0.4 for non-grouped data, 0.6 for grouped data
Range: 0 (narrowest) to 1 (widest)
Interaction: For grouped box plots with a discrete X (category) axis, the box width is a percentage of the CLUSTERWIDTH.
CAPSHAPE=SERIF | LINE | BRACKET
specifies the shape at the ends of the whiskers.
Default: The GraphBox:CapStyle style reference.
SERIF
specifies a short line perpendicular to the whisker.
LINE
specifies a line perpendicular to whisker extending the width of the box.
BRACKET
specifies a line perpendicular to the whisker extending the width of the box with short extensions at the ends drawn in the direction of the box.
Interaction: The cap color and the thickness are specified by the WHISKERATTRS= option. The cap pattern is always solid.
Interaction: The DISPLAY= option must include CAPS for cap lines to be shown.
CLUSTERWIDTH= number
specifies the width of the group clusters as a fraction of the midpoint spacing.
Default: 0.7
Range: 0.1 (narrowest) to 1 (widest)
Interaction: For this option to take effect, the GROUP= option must also be specified, and the GROUPDISPLAY= option must be set to CLUSTER.
Note: When the X axis is an interval axis, the cluster width is a fraction of the smallest data interval.
Clusters in a Box Plot
CONNECT= MEAN | MEDIAN | Q1 | Q3 | MIN | MAX
specifies that a connect line joins a statistic from box to box.
Default: The GraphBox:Connect style reference.
Requirement: The DISPLAY= option must contain the CONNECT display-option for the connect line to be displayed.
Interaction: This option only applies when the X= argument is used to generate multiple boxes.
CONNECTATTRS=style-element | style-element (line-options) | (line-options)
specifies the attributes of the lines connecting multiple boxes. See General Syntax for Attribute Options for the syntax on using a style-element and Line Options for available line-options.
Default: The GraphConnectLine style element.
Interaction: If there is only one box, this option is ignored.
Interaction: If the DISPLAY= option does not include CONNECT, or if the GROUP= option is used, this option is ignored.
DATALABEL=column
specifies the labels of the outliers. Either a numeric or a character column can be used.
Default: no data labels are displayed
Interaction: This option is ignored if EXTREME=TRUE or the DISPLAY= option does not display the outliers.
See also: LABELFAR= option
DATALABELATTRS=style-element | style-element (text-options) | (text-options)
specifies the color and font attributes of the outlier labels. See General Syntax for Attribute Options for the syntax on using a style-element and Text Options for available text-options.
Default: The GraphDataText style element.
Interaction: This option is ignored if EXTREME=TRUE or the DISPLAY= option does not display the outliers.
Interaction: If one or more label options are specified and they do not include all the font properties (color, family, size, weight, style), non-specified properties are derived from the GraphDataText style element.
DATATRANSPARENCY=number
specifies the degree of the transparency of the box outlines, box fill, whiskers, mean, median, caps, connect lines, and outliers, if displayed.
Default: 0
Range: 0 (opaque) to 1 (entirely transparent).
Tip: The FILLATTRS= option can be used to set transparency for just the interior fill area of the boxes. You can combine this option with FILLATTRS= to set one transparency for the box outlines and the whiskers, mean, median, caps, and connect lines, but a different transparency for the box fills. Example:
datatransparency=0.2 fillattrs=(transparency=0.6)
DISCRETEOFFSET=number
specifies an amount to offset all boxes from the discrete X ticks.
Default: 0 (no offset, all boxes are centered on the discrete ticks)
Range: -0.5 to +0.5, where .5 represents half the distance between discrete ticks. A positive offset is to the right when ORIENT=VERTICAL, and up when ORIENT=HORIZONTAL. (If the layout's axis options set REVERSE=TRUE, then the offset direction is also reversed.)
Details: This feature is useful for graphing multiple response variables side by side on a common axis. By default within an overlay-type layout, if multiple BOXPLOT statements are used with different analysis variables, the boxes for matching X values are centered on the ticks. Depending on the data, the boxes might be superimposed. The following code fragment shows the default box positioning:
layout overlay / cycleattrs=true 
    yaxisopts=(label="Miles Per Gallon");

  boxplot x=type y=mpg_city    / name="City";
  boxplot x=type y=mpg_highway / name="Highway";

  discretelegend "City" "Highway";
endlayout;
Box Plot with Boxes Centered on Discrete X Ticks
To place the different response values side by side, you can assign a different offset to each BOXPLOT statement. The BOXWIDTH= option can be used in conjunction with the DISCRETEOFFSET= option to create narrower boxes when desired.
layout overlay / cycleattrs=true 
    yaxisopts=(label="Miles Per Gallon");

  boxplot x=type y=mpg_city    / name="City"
    discreteoffset=.2 ;
  boxplot x=type y=mpg_highway / name="Highway"
    discreteoffset=-.2 ;

  discretelegend "City" "Highway";
endlayout;
Box Plot with Tick Offsets
DISPLAY=STANDARD | ALL | ( display-options)
specifies which additional features of the box plot to display.
Default: The GraphBox:DisplayOpts style reference. If this style element does not exist, the default is STANDARD.
STANDARD
displays this combination of features (CAPS FILL MEAN MEDIAN OUTLIERS)
ALL
displays all features
(display-options)
a list of features, enclosed in parentheses, to be displayed. The list can include any of the following:
CAPS displays caps at the ends of the whiskers
CONNECT displays the line connecting multiple boxes
FILL displays filled boxes
MEAN displays the mean symbol within the box
MEDIAN displays the median line within the box
NOTCHES displays notched boxes
OUTLIERS displays markers for the outliers
Interaction: If EXTREME=TRUE, then the OUTLIERS feature is ignored
To control the appearance of these features, use the CONNECTATTRS=, FILLATTRS=, MEANATTRS=, MEDIANATTRS=, OUTLIERATTRS=, and WHISKERATTRS= options. The WHISKERATTRS= option controls affects both CAPS and WHISKERS.
Tip: Regardless of which display-options are being displayed, this option does not affect the axis range.
Details: The endpoints of the notches are at the following computed locations.
In the equation, the IQR (IQR=Q3-Q1) is the interquartile range and N is the sample size.
Endpoints of the Notches
DISPLAYSTATS=NONE | STANDARD | ALL | (statistics-list)
specifies the statistics to be displayed for each box.
Default: NONE
NONE
does not display any statistics
STANDARD
displays N, MEAN, and STD
ALL
displays all available statistics (see the statistics-list)
(statistics-list)
specifies a list of features to be displayed. The list must be enclosed in parentheses and can include any of the following:
MAX maximum data value below the box upper fence
MEAN mean data value for box
MEDIAN median data value for box
MIN minimum data value above the box upper fence
N number of observations for box
Q1 lower quartile (25th percentile) for box
Q3 upper quartile (75th percentile) for box
STD standard deviation of the data for box
RANGE range of the data (MAX–MIN)
IQR interquartile range (Q3–Q1)
Restriction: This option is ignored if ORIENT=HORIZONTAL
EXTREME=boolean
specifies whether the whiskers can extend beyond the fences.
Default: FALSE
FALSE
specifies that whiskers be drawn from the upper edge of the box to the largest value within the upper fence, and from the lower edge of the box to the smallest value within the lower fence. This representation is sometime called a schematic box and whisker plot or Tukey box and whisker plot.
TRUE
specifies that whiskers be drawn to the largest and smallest data values, whether these values are inside or outside the fences. The outliers and far outliers are not displayed and are not labeled. This representation is sometime called a skeletal box and whisker plot.
Interaction: This option overrides the DATALABEL=, DATALABELATTRS=, LABELFAR=, OUTLIERATTRS=, and SPREAD= options.
Fences are locations above and below the box. The upper and lower fences are located at a distance 1.5 times the Interquartile Range (IQR) (IQR = Q3 - Q1). The upper and lower far fences are located at a distance 3 times the IQR. (SeeExample Program and Statement Details .)
FILLATTRS=style-element | style-element (fill-options) | (fill-options)
specifies the appearance of the interior fill area of the boxes. See General Syntax for Attribute Options for the syntax on using a style-element and Fill Options for available fill-options.
Default:
  • For non-grouped data, the GraphDataDefault:Color style reference.
  • For grouped data, the Color attribute of the GraphData1 - GraphDataN style elements.
Interaction: For this option to have any effect, the fill must be enabled by the ODS style or the DISPLAY= option.
Tip: The DATATRANSPARENCY option sets the transparency for the box outlines, box fill, whiskers, mean, median, caps, connect lines, and outliers. You can combine this option with DATATRANSPARENCY= to set one transparency for the box outlines and the whiskers, mean, median, caps, and connect lines, but a different transparency for the box fills. Example:
datatransparency=0.2 fillattrs=(transparency=0.6)
FREQ=numeric-column | expression
specifies a numeric column that provides frequencies for each observation read. If n is the value of the numeric-column for a given observation, then that observation is used n times for any statistical computation.
Default: Each observation is counted once.
Restriction: If the value of the numeric-column is missing or is less than 1, the observation is not used in the analysis. If the value is not an integer, only the integer portion is used.
GROUP=column | discrete-attr-var | expression
creates a box plot for each unique group value of the specified column.
discrete-attr-var
specifies a discrete attribute variable that is defined in a DISCRETEATTRVAR statement.
Restriction: A discrete attribute variable specification must be a direct reference to the attribute variable. It cannot be set by a dynamic variable.
For example, the SASHELP.CARS data that is used in the Example Program contains a column named ORIGIN, which identifies the region that produces each car. This column could be used in the BOXPLOT statement to group the box plots in the display (see the GROUPDISPLAY= option to see the output for the grouped boxes):
layout overlay / xaxisopts=(display=(line ticks tickvalues));
  boxplot y=mpg_city x=cylinders / name="b"
    datalabel=make spread=true
    display=(caps fill mean median)
    group=origin ;
  discretelegend "b" / title="Vehicle Type: ";
endlayout;
Default:
  • Each distinct group value is represented in the graph by a different box outline color. The outline colors are defined by the GraphData1:ContrastColor - GraphDataN:ContrastColor style references.
  • If the MEDIAN, CAPS, or NOTCHES are enabled by the DISPLAY= option, each of these features uses the same color as the box outline. Line styles do not change by group value.
  • If the MEAN or OUTLIERS are enabled by the DISPLAY= option, each distinct group value is represented by a different marker. The markers are defined by the MarkerSymbol and ContrastColor attributes of the GraphData1 - GraphDataN style elements. A marker is used for both MEAN and OUTLIERS, if displayed.
  • If box fills are enabled by the ODS style or by the DISPLAY= option, each distinct group value is represented in the graph by a different fill color. The fill colors are defined by the GraphData1:Color - GraphDataN:Color style references.
Interaction: The box plot display depends on the setting for the GROUPDISPLAY= option.
Interaction: Connect lines are not drawn for grouped data.
Interaction: By default, the group values are mapped in the order of the data. The GROUPORDER= option can be used to control the sorting order of the group values. The INDEX= option can be used to alter the default sequence of colors and markers.
Tip: The representations that are used to identify the groups can be overridden individually. For example, each distinct group value is represented by a different line pattern for the box outlines, but the PATTERN= setting in the OUTLIERATTRS= option could be used to assign the same line pattern to all box outlines and connect lines.
Interaction: The INCLUDEMISSINGGROUP option controls whether missing group values are considered a distinct group value.
GROUPDISPLAY=OVERLAY | CLUSTER
specifies how to display the boxes that represent group values for the coordinate pairs. The following example shows a box plot with GROUPDISPLAY=CLUSTER:
Box Plot with Clustered Boxes
Default: OVERLAY
OVERLAY
draws boxes for a given group value at the exact coordinate. Depending on the data, boxes at a given coordinate might overlap.
CLUSTER
draws boxes for a given group value adjacent to each other.
Interaction: This option is ignored unless GROUP= is specified.
Tip: Use the CLUSTERWIDTH= option to control the width of the clusters when CLUSTER is in effect.
GROUPORDER=DATA | ASCENDING | DESCENDING
specifies the ordering of the groups within a category. It also sets the default order of the groups in the legend.
Default: DATA
DATA
shows each group within a category in data order of the group column.
ASCENDING
shows each group within a category in ascending order of the group column.
DESCENDING
shows each group within a category in descending order of the group column.
Interaction: This option is ignored unless GROUP= is specified.
Note: Attributes such as color, symbol, and pattern are assigned to each group in the DATA order by default regardless of the GROUPORDER= option setting.
Note: The ASCENDING and DESCENDING settings linguistically sort the group values within each category (or X value) for display position purposes only. The data order of the observations and the visual attributes that are assigned to the group values remain unchanged.
INCLUDEMISSINGGROUP=boolean
specifies whether missing values of the group variable are included in the plot.
Default: TRUE
Interaction: For this option to take effect, the GROUP= option must also be specified.
Tip: Unless a discrete attribute map is in effect or the INDEX= option is used, the attributes of the missing group value are determined by the GraphMissing style element except when the MISSING= system option is used to specify a non-default missing character or when a user-defined format is applied to the missing group value. In those cases, the attributes of the missing group value are determined by a GraphData1–GraphDataN style element.
INDEX=numeric-column | expression
specifies indices for mapping line attributes (color and pattern) to one of the GraphData1 - GranphDataN style elements.
Default: no default
Restriction: If the value of the numeric-column is missing or is less than 1, the observation is not used in the analysis. If the value is not an integer, only the integer portion is used.
Interaction: For this option to take effect, the GROUP= option must also be specified.
Interaction: All of the indexes for a specific group value must be the same. Otherwise, the results are unpredictable.
Interaction: The index values are 1-based indices. For the style definitions in GraphData1 - GraphDataN, if the index value is greater than N, then a modulo operation remaps that index value to a number less than N to determine which style to use.
Interaction: If this option is not used, then the group values are mapped in the order of the data.
Discussion: Indexing can be used to collapse the number of groups that are represented in a graph. For more information, see Remapping Groups for Grouped Data.
INTERVALBOXWIDTH= AUTO | dimension
specifies the box width when an interval category (X) column is specified.
Default: AUTO
AUTO uses 85% of the smallest interval between any two boxes for the given plot.
dimension sets the box width to the specified value.
Restriction: The axis type for the category axis (X by default) must be LINEAR, and the X column must be numeric.
LABELFAR=boolean
specifies whether all outliers or only far outliers are labeled. For more information about outliers, see the Example Program and Statement Details.
Default: FALSE
FALSE
the labels specified by the DATALABEL= option apply to both outliers and far outliers.
TRUE
the labels specified by the DATALABEL= option only apply to far outliers.
Interaction: This option is ignored if EXTREME=TRUE or the DISPLAY= option does not display the outliers.
LEGENDLABEL= "string"
specifies a label for the legend item that is associated with this plot.
Default: The string specified on the NAME= option.
Restriction: This option applies only to an associated DISCRETELEGEND statement.
Interaction: If the GROUP= option is specified, this option is ignored.
MEANATTRS=style-element | style-element (marker-options) | (marker-options)
specifies the attributes of the marker representing the mean within the box. See General Syntax for Attribute Options for the syntax on using a style-element and Marker Options for available marker-options.
Default:
  • For non-grouped data, GraphBoxMean style element.
  • For grouped data, the MarkerSymbol, Markersize, and ContrastColor attributes of the GraphData1 – GraphDataN style elements.
Interaction: This option is ignored if the DISPLAY= option does not display the mean.
MEDIANATTRS=style-element | style-element (line-options) | (line-options)
specifies the appearance of the line representing the median within the box. See General Syntax for Attribute Options for the syntax on using a style-element and Line Options for available line-options.
Default:
  • For non-grouped data, the GraphBoxMedian style element.
  • For grouped data, the LineStyle and LineThickness attributes of the GraphBoxMedian style element, and the ContrastColor attribute of the GraphData1 – GraphDataN style elements.
Interaction: This option is ignored if the DISPLAY= option does not display the median.
NAME="string"
assigns a name to a plot statement for reference in other template statements.
Default: no default
Restriction: The string is case sensitive, cannot contain spaces, and must define a unique name within the template.
Interaction: The string is used as the default legend label if the LEGENDLABEL= option is not used.
The specified name is used primarily in legend statements to coordinate the use of colors and line patterns between the graph and the legend.
ORIENT= VERTICAL | HORIZONTAL
specifies the orientation of the Y axis and of the boxes.
Default: VERTICAL
OUTLIERATTRS=style-element | style-element (marker-options) | (marker-options)
specifies the attributes of the markers representing the outliers. See General Syntax for Attribute Options for the syntax on using a style-element and Marker Options for available marker-options.
Default:
  • For non-grouped data, GraphOutlier style element.
  • For grouped data, the MarkerSymbol, Markersize, and ContrastColor attributes of the GraphData1 – GraphDataN style elements.
Interaction: This option is ignored if EXTREME=TRUE or the DISPLAY= option does not display the outliers.
OUTLIERTIP=(role-list)
specifies the information to display when the cursor is positioned over an outlier. If this option is used, it replaces all of the information that is displayed by default.
Default: The columns assigned to these roles are automatically included in the tooltip information: X and Y.
(role-list)
an ordered, blank-separated list of unique BOXPLOT roles. BOXPLOT roles for OUTLIERTIP include X, Y, STAT, and DATALABEL.
Note: In the tooltip, the STAT role displays the text “outlier” or “far outlier” as applicable.
The following example displays tooltips only for the column that is assigned to the X role:
OUTLIERTIP=(X)
Requirement: To generate tooltips, you must include an ODS GRAPHICS ON statement that has the IMAGEMAP option specified, and write the graphs to the ODS HTML destination.
Interaction: The labels and formats for the OUTLIERTIP variables can be controlled with the TIPLABEL= and TIPFORMAT= options.
See Also: The TIP= option for specifying the information to display when the cursor is positioned over a box or whisker in the box plot.
OUTLINEATTRS=style-element | style-element (line-options) | (line-options)
specifies the appearance of the box outline. See General Syntax for Attribute Options for the syntax on using a style-element and Line Options for available line-options.
Default: The GraphOutlines style element.
PERCENTILE= 1 | 2 | 3 | 4 | 5
specifies one of five definitions used to calculate percentiles.
Default: 5 (empirical distribution function with averaging)
The percentile definitions and default are the same as used by PCTLDEF= option of PROC UNIVARIATE or the QNTLDEF= option of PROC SUMMARY.
Calculating Percentiles: You can specify one of five definitions for computing the percentiles with the PERCENTILE= option. Let be the number of nonmissing values for a variable, and let , , ..., represent the ordered values of the variable. is the smallest value, is the next smallest, and is the largest value. Let the th percentile be , set , and let
when PERCENTILE=1, 2, 3, or 5
when PERCENTILE=4
where is the integer part of , and is the fractional part of . Then the PERCENTILE= option defines the th percentile, , as described in the following table:
Percentile Definitions
PRIMARY=boolean
specifies that the data columns for this plot and the plot type be used for determining default axis features.
Default: FALSE
Restriction: This option is ignored if the plot is placed under a GRIDDED or LATTICE layout block.
Details: This option is needed only when two or more plots within an overlay-type layout contribute to a common axis. For more information, see When Plots Share Data and a Common Axis.
SPREAD=boolean
specifies whether outliers with the same value are spread out to avoid overlap. For vertical box plots this means offsetting the outliers horizontally. If this option is false, outliers with the same value are plotted in the same position. Thus, only one is visible
Default: FALSE
Interaction: This option is ignored if EXTREME=TRUE or the DISPLAY= option does not display the outliers.
TIP=(role-list)
specifies the information to display when the cursor is positioned over a box or whisker in the box plot. If this option is used, it replaces all of the information that is displayed by default.
Default: The columns assigned to these roles are automatically included in the tooltip information: X, N, STD, MIN, MAX, Q1, Q3, MEAN, and MEDIAN.
(role-list)
an ordered, blank-separated list of unique BOXPLOT roles. BOXPLOT roles for TIP include X, N, STD, MIN, MAX, MEAN, MEDIAN, Q1, Q3 and BOXWIDTH.
The following example displays tooltips only for the columns that are assigned to the roles X and Y
TIP=(X Y)
Requirement: To generate tooltips, you must include an ODS GRAPHICS ON statement that has the IMAGEMAP option specified, and write the graphs to the ODS HTML destination.
Interaction: The labels and formats for the TIP variables can be controlled with the TIPLABEL= and TIPFORMAT= options.
Tip: Statistics such as N, MIN, MAX are special roles. They are not column-based like the X role.
See Also: The OUTLIERTIP= option for specifying the information to display when the cursor is positioned over an outlier.
TIPFORMAT=(role-format-list)
specifies display formats for the information that is defined by the tooltip roles.
Default: The column format of the variable assigned to the role or BEST6. if no format is assigned to a numeric column.
(role-format-list)
a list of role-name = format pairs separated by blanks.
TIP=(X MEAN MIN MAX) TIPFORMAT=(X=4. MEAN=4.)
Requirement: This option provides a way to control the formats of columns that appear in tooltips. Only the roles that appear in the OUTLIERTIP= or TIP= options are used.
Interaction: For this option to have any effect, a column must be assigned to each of the specified roles.
TIPLABEL=(role-label-list)
specifies display labels for the information that is defined by the tooltip roles.
Default: The column label or column name of the variable that is assigned to the role.
(role-label-list)
a list of role-name = "string" pairs separated by blanks.
TIP=(X MEAN MIN MAX) OUTLIERTIP=(Y)
TIPLABEL=(X="Box")
 
Requirement: This option provides a way to control the labels of columns that appear in tooltips. Only the roles that appear in the OUTLIERTIP= or TIP= options are used.
Interaction: For this option to have any effect, a column must be assigned to each of the specified roles.
WHISKERATTRS=style-element | style-element (line-options) | (line-options)
specifies the line properties of the whiskers and caps. See General Syntax for Attribute Options for the syntax on using a style-element and Line Options for available line-options.
Default:
  • For non-grouped data, the GraphBoxWhisker style element.
  • For grouped data, the LineStyle and LineThickness attributes of the GraphBoxWhisker style element, and the ContrastColor attribute of the GraphData1 – GraphDataN style elements.
Restriction: The caps are always drawn with a solid line.
XAXIS=X | X2
specifies whether data are mapped to the primary X (left) axis or to the secondary X2 (right) axis.
Default: X
Interaction: This option is ignored if the X= argument is not specified.
Interaction: The overall plot specification and the layout type determine the axis display. For more information, see How Axis Features Are Determined.
YAXIS=Y | Y2
specifies whether data are mapped to the primary Y (bottom) axis or to the secondary Y2 (top) axis.
Default: Y
Interaction: The overall plot specification and the layout type determine the axis display. For more information, see How Axis Features Are Determined.