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. 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 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 28.4.

options

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

Table 28.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: When ODS Graphics is enabled, the MIN and MAX keywords display the low whisker and high whisker values, respectively. Otherwise, the group minimum and maximum data values are displayed.

Table 28.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 28.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