|
Chapter Contents |
Previous |
Next |
| The BOXPLOT Procedure |
proc boxplot data=summary;
plot (weight length width)*day;
run;
| Option | Description |
| Options for Controlling Box Appearance | |
| BOXCONNECT | connects group means in box-and-whisker plots |
| BOXCONNECT= | connects group means, medians, maximum values, minimum values, or quartiles in box-and-whisker plots |
| BOXSTYLE= | specifies style of box-and-whisker plots |
| BOXWIDTH= | specifies width of box-and-whisker plots |
| BOXWIDTHSCALE= | specifies that widths of box-and-whisker plots vary proportionately to group size |
| CBOXES= | specifies color for outlines of box-and-whisker plots |
| CBOXFILL= | specifies fill color for interior of box-and-whisker plots |
| IDCOLOR= | specifies outlier symbol color in schematic box-and-whisker plots |
| IDCTEXT= | specifies outlier label color in schematic box-and-whisker plots |
| IDFONT= | specifies outlier label font in schematic box-and-whisker plots |
| IDHEIGHT= | specifies outlier label height in schematic box-and-whisker plots |
| IDSYMBOL= | specifies outlier symbol in schematic box-and-whisker plots |
| LBOXES= | specifies line types for outlines of box-and-whisker plots |
| NOSERIFS | eliminates serifs from the whiskers of box-and-whisker plots |
| NOTCHES | specifies that box-and-whisker plots are to be notched |
| PCTLDEF= | specifies percentile definition used for box-and-whisker plots |
| Options for Plotting and Labeling Points | |
| CCONNECT= | specifies color for line segments that connect points on plot |
| SYMBOLLEGEND= | specifies LEGEND statement for levels of the symbol variable |
| SYMBOLORDER= | specifies order in which symbols are assigned for levels of the symbol variable |
| Reference Line Options | |
| CHREF= | specifies color for lines requested by HREF=option |
| CVREF= | specifies color for lines requested by VREF= option |
| HREF= | specifies position of reference lines perpendicular to horizontal axis on box plot |
| HREFLABELS= | specifies labels for HREF=lines |
| HREFLABPOS= | specifies position of HREFLABELS= labels |
| LHREF= | specifies line type for lines |
| LVREF= | specifies line type for VREF= lines |
| NOBYREF | specifies that reference line information in a data set is to be applied uniformly to plots created for all BY groups |
| VREF= | specifies position of reference lines perpendicular to vertical axis on box plot |
| VREFLABELS= | specifies labels for VREF= lines |
| VREFLABPOS= | specifies position of VREFLABELS= labels |
| Block Variable Legend Options | |
| BLOCKLABELPOS= | specifies position of label for the block variable legend |
| BLOCKLABTYPE= | specifies text size of the block variable legend |
| BLOCKPOS= | specifies vertical position of the block variable legend |
| BLOCKREP | repeats identical consecutive labels in the block variable legend |
| CBLOCKLAB= | specifies color for filling background in the block variable legend |
| CBLOCKVAR= | specifies one or more variables whose values are colors for filling background of the block variable legend |
| Axis and Axis Label Options | |
| CAXIS= | specifies color for axis lines and tick marks |
| CFRAME= | specifies fill colors for frame for plot area |
| CONTINUOUS | produces horizontal axis for continuous group variable values |
| CTEXT= | specifies color for tick mark values and axis labels |
| HAXIS= | specifies major tick mark values for horizontal axis |
| HEIGHT= | specifies height of axis label and axis legend text |
| HMINOR= | specifies number of minor tick marks between major tick marks on horizontal axis |
| HOFFSET= | specifies length of offset at both ends of horizontal axis |
| NOHLABEL | suppresses label for horizontal axis |
| NOTICKREP | specifies that only the first occurrence of repeated, adjacent group values is to be labeled on horizontal axis |
| NOVANGLE | requests vertical axis labels that are strung out vertically |
| SKIPHLABELS= | specifies thinning factor for tick mark labels on horizontal axis |
| TURNHLABELS | requests horizontal axis labels that are strung out vertically |
| VAXIS= | specifies major tick mark values for vertical axis of box plot |
| VMINOR= | specifies number of minor tick marks between major tick marks on vertical axis |
| VOFFSET= | specifies length of offset at both ends of vertical axis |
| VZERO | forces origin to be included in vertical axis |
| WAXIS= | specifies width of axis lines |
| Input Data Set Options | |
| MISSBREAK | specifies that missing values between identical character group values signify the start of a new group |
| Graphical Enhancement Options | |
| ANNOTATE= | specifies annotate data set that adds features to box plot |
| BWSLEGEND | displays a legend identifying the function of group size specified with the BOXWIDTHSCALE= option |
| DESCRIPTION= | specifies string that appears in the description field of the PROC GREPLAY master menu for box plot |
| FONT= | specifies software font for labels and legends on plots |
| NAME= | specifies name that appears in the name field of the PROC GREPLAY master menu for box plot |
| NLEGEND | requests a legend displaying group sample sizes |
| PAGENUM= | specifies the form of the label used in pagination |
| PAGENUMPOS= | specifies the position of the page number requested with the PAGENUM= option |
| Grid Options | |
| ENDGRID | adds grid after last box-and-whisker plot |
| GRID | adds grid to box plot |
| LENDGRID= | specifies line type for grid requested with the ENDGRID option |
| LGRID= | specifies line type for grid requested with the GRID option |
| WGRID= | specifies width of grid lines |
| Plot Layout Options | |
| INTERVAL= | specifies natural time interval between consecutive group positions when time, date, or datetime format is associated with a numeric group variable |
| MAXPANELS= | specifies maximum number of pages or screens for plot |
| NOFRAME | suppresses frame for plot area |
| NPANELPOS= | specifies number of group positions per panel on each plot |
| REPEAT | repeats last group position on panel as first group position of next panel |
| TOTPANELS= | specifies number of pages or screens to be used to display plot |
| n | Legend Position |
| 1 | top of plot, offset from axis frame |
| 2 | top of plot, immediately above axis frame |
| 3 | bottom of plot, immediately above horizontal axis |
| 4 | bottom of plot, below horizontal axis label |
|
HREF=5 HREF=5 10 15 20 25 30 HREF='Shift 1' 'Shift 2' 'Shift 3'
| HREFLABPOS= | Label Position |
| 1 | along top of plot area |
| 2 | staggered from top to bottom of plot area |
| 3 | along bottom of plot area |
| 4 | staggered from bottom to top of plot area |
| Format | Default Keyword | Format | Default Keyword |
| DATE | DAY | MONYY | MONTH |
| DATETIME | DTDAY | TIME | SECOND |
| DDMMYY | DAY | TOD | SECOND |
| HHMM | HOUR | WEEKDATE | DAY |
| HOUR | HOUR | WORDDATE | DAY |
| MMDDYY | DAY | YYMMDD | DAY |
| MMSS | MINUTE | YYQ | QTR |
|
proc boxplot data=pistons;
plot diameter*hour / pagenum='Page #';
plot diameter*hour / pagenum='Page # of #';
plot diameter*hour / pagenum='#/#';
run;
proc boxplot;
plot width*hour / vaxis=0 2 4 6 8;
plot width*hour / vaxis=0 to 8 by 2;
run;
vref=20 vref=20 40 80
| n | Label Position |
| 1 | left-justified in plot area |
| 2 | right-justified in plot area |
| 3 | left-justified in right margin |
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.