The BOXPLOT Procedure

INSETGROUP Statement

  • INSETGROUP keywords </ options>;

A PLOT statement in the BOXPLOT procedure can be followed by a series of INSET and INSETGROUP statements. Each INSETGROUP statement in that series displays statistics associated with individual groups in the box plot produced by the preceding PLOT statement. Note: The INSETGROUP statement is ignored when you specify the HORIZONTAL option with ODS Graphics enabled. No more than two INSETGROUP statements can be associated with a given PLOT statement: one that displays group statistics above the box plot and one that displays group statistics below it. The data requested by using the keywords are displayed in the order in which they are specified.

keywords

identify summary statistics to be displayed in the insets. By default, inset statistics are identified with appropriate labels, and numeric values are printed using appropriate formats. However, you can provide customized labels and formats. You provide the customized label by specifying the keyword for that statistic followed by an equal sign (=) and the label in quotes. Labels can have up to 24 characters. You provide the numeric format in parentheses after the keyword. Note that if you specify both a label and a format for a statistic, the label must appear before the format. The keywords are listed in Table 4.

options

control the appearance of the insets. Table 5 lists all the options in the INSETGROUP statement. Complete descriptions for each option follow.

Table 4: INSETGROUP Statement Keywords

Keyword Description
MEAN Group mean
MIN Group minimum value or low whisker value
MAX Group maximum value or high whisker value
N Number of observations in group
NHIGH Number of outliers above upper fence
NLOW Number of outliers below lower fence
NOUT Total number of outliers in group
Q1 First quartile of group values
Q2 Second quartile of group values
Q3 Third quartile of group values
RANGE Range of group values
STDDEV Group standard deviation


Note: The NHIGH, NLOW, and NOUT keywords are not supported when ODS Graphics is enabled,

Table 5 summarizes the options available in the INSETGROUP statement. All of these options apply to traditional graphics only. They are ignored when ODS Graphics is enabled.

Table 5: INSETGROUP Statement Options

Option Description
CFILL= Specifies color of inset background
CFILLH= Specifies color of inset header background
CFRAME= Specifies color of inset frame
CHEADER= Specifies color of inset header text
CTEXT= Specifies color of inset text
FONT= Specifies font of inset text
FORMAT= Specifies format of values in inset
HEADER= Specifies inset header text
HEIGHT= Specifies height of inset and header text
NOFRAME Suppresses frame around inset
POSITION= Specifies position of inset


Following are descriptions of the options that you can specify in the INSETGROUP statement after a slash (/).

CFILL=color

specifies the color of the inset background (including the header background if you do not specify the CFILLH= option). If you do not specify the CFILL= option, then by default the background is empty.

CFILLH=color

specifies the color of the header background. By default, if you do not specify a CFILLH= color, the CFILL= color is used.

CFRAME=color

specifies the color of the frame around the inset. By default, the frame is the same color as the axis of the plot.

CHEADER=color

specifies the color of the header text. By default, if you do not specify a CHEADER= color, the CTEXT= color is used.

CTEXT=color
CT=color

specifies the color of the inset text. By default, the inset text color is the same as the other text in the plot.

FONT=font

specifies the font of the inset text. By default, the font is SIMPLEX.

FORMAT=format

specifies a format for all the values displayed in an inset. If you specify a format for a particular statistic, then this format overrides the format you specified with the FORMAT= option.

HEADER='string'

specifies the header text. The string can be up to 40 characters. If you do not specify the HEADER= option, no header line appears in the inset.

HEIGHT=value

specifies the height of the inset and header text.

NOFRAME

suppresses the frame drawn around the inset.

POSITION=position
POS=position

determines the position of the inset. Valid positions are TOP, TOPOFF, AXIS, and BOTTOM. By default, POSITION=TOP.

Position Keyword Description
TOP Top of plot, immediately above axis frame
TOPOFF Top of plot, offset from axis frame
AXIS Bottom of plot, immediately above horizontal axis
BOTTOM Bottom of plot, below horizontal axis label

Last updated: December 09, 2022