INSET
keywords </ options> ;
A PLOT statement in the BOXPLOT procedure can be followed by a series of INSET and INSETGROUP statements. Each INSET statement in that series produces one inset in the box plot produced by the preceding PLOT statement. If the box plot occupies multiple panels, the inset appears on each panel.
The data requested using the keywords are displayed in the order in which they are specified. Summary statistics requested with an INSET statement are calculated using the observations in all groups.
identify summary statistics or other data to be displayed in the inset. 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 available keywords are listed in Table 26.2.
control the appearance of the inset. Most of these options apply only to traditional graphics and are ignored when ODS Graphics is enabled. Table 26.3 summarizes the options available in the INSET statement. It also lists options and identifies those that are valid when ODS Graphics is enabled. Complete descriptions for each option follow.
Table 26.2: INSET Statement Keywords
Keyword |
Description |
---|---|
DATA= |
(label, value) pairs from SAS-data-set |
MEAN |
mean of all observations |
MIN |
minimum observed value |
MAX |
maximum observed value |
NMIN |
minimum group size |
NMAX |
maximum group size |
NOBS |
number of observations in box plot |
STDDEV |
pooled standard deviation |
The DATA= keyword specifies a SAS data set containing (label, value) pairs to be displayed in an inset. The data set must
contain the variables _LABEL_
and _VALUE_
. _LABEL_
is a character variable of up to 24 characters whose values provide labels for inset entries. _VALUE_
can be character or numeric, and provides values displayed in the inset. The label and value from each observation in the
DATA= data set occupy one line in the inset.
The pooled standard deviation requested with the STDDEV keyword is defined as
where N is the number of groups, is the size of the ith group, and is the variance of the ith group.
Table 26.3: INSET Statement Options
Option |
Description |
ODS Graphics |
---|---|---|
Specifies color of inset background |
||
Specifies color of inset header background |
||
Specifies color of inset frame |
||
Specifies color of inset header text |
||
Specifies color of inset drop shadow |
||
Specifies color of inset text |
||
Specifies data units for POSITION= coordinates |
||
Specifies font of inset text |
||
Specifies format of values in inset |
✓ |
|
Specifies inset header text |
✓ |
|
Specifies height of inset and header text |
||
Suppresses frame around inset |
✓ |
|
Specifies position of inset |
✓ |
|
Specifies reference point of inset positioned with POSITION= coordinates |
Following are descriptions of the options that you can specify in the INSET statement after a slash (/). Only those options marked with † are applicable when ODS Graphics is enabled.