SAS Institute. The Power to Know

SAS/QC(R) 9.2 User's Guide


BOXCHART Statement

Summary of Options

The following tables list the BOXCHART statement options by function. Many of these options are identical to options in the SHEWHART procedure, which are described in detail in Chapter 56, "Dictionary of Options."

Table 5.1: Tabulation Options
Option Description
TABLEcreates a basic table of group means, group sample sizes, and decision limits
TABLEALLis equivalent to the options TABLE, TABLECENTRAL, TABLEID, and TABLEOUTLIM
TABLECENTRALaugments basic table with values of central lines
TABLEIDaugments basic table with columns for ID variables
TABLEOUTLIMaugments basic table with columns indicating decision limits exceeded

Note that specifying (EXCEPTIONS) after a tabulation option creates a table for exceptional points only, that is, groups for which the mean exceeds the decision limits.

Table 5.2: Options for Controlling Box Appearance
Option Description
BOXCONNECTconnects group means in box-and-whisker plots
BOXCONNECT=keywordconnects group means, medians, maximum values, minimum values, or quartiles in box-and-whisker plots
BOXSTYLE=keywordspecifies style of box-and-whisker plots
BOXWIDTH=valuespecifies width of box-and-whisker plots
BOXWIDTHSCALE= valuespecifies that widths of box-and-whisker plots vary proportionately to group sample size
CBOXES=color|(variable)specifies color for outlines of box-and-whisker plots
CBOXFILL=color|(variable)specifies fill color for interior of box-and-whisker plots
IDCOLOR=colorspecifies outlier symbol color in schematic box-and-whisker plots
IDCTEXT=colorspecifies text color to label outliers or response variable values
IDFONT=fontspecifies text font to label outliers or response variable values
IDHEIGHT=valuespecifies text height to label outliers or response variable values
IDSYMBOL=symbolspecifies outlier symbol in schematic box-and-whisker plots
LBOXES=linetype|(variable)specifies line types for outlines of box-and-whisker plots
NOTCHESspecifies that box-and-whisker plots are to be notched
PCTLDEF=nspecifies percentile definition used for box-and-whisker plots
SERIFSadds serifs to the whiskers of skeletal box-and-whisker plots

Table 5.3: Reference Line Options
Option Description
CHREF=colorspecifies color for lines requested by HREF= option
CVREF=colorspecifies color for lines requested by VREF= option
HREF=values| SAS-data-setspecifies position of reference lines perpendicular to horizontal axis on ANOM boxchart
HREFDATA= SAS-data-setspecifies position of reference lines perpendicular to horizontal axis on ANOM boxchart
HREFLABELS= 'label1'...'labeln'specifies labels for HREF= lines
HREFLABPOS=nspecifies position of HREFLABELS= labels
LHREF=linetypespecifies line type for HREF= lines
LVREF=linetypespecifies line type for VREF= lines
NOBYREFspecifies that reference line information in a data set applies uniformly to charts created for all BY groups
VREF=values| SAS-data-setspecifies position of reference lines perpendicular to vertical axis on ANOM boxchart
VREFLABELS= 'label1'...'labeln'specifies labels for VREF= lines
VREFLABPOS=nposition of VREFLABELS= labels

Table 5.4: Block Variable Legend Options
Option Description
BLOCKLABELPOS= keywordspecifies position of label for block-variable legend
BLOCKLABTYPE= value|keywordspecifies text size of block-variable legend
BLOCKPOS=nspecifies vertical position of block-variable legend
BLOCKREPrepeats identical consecutive labels in block-variable legend
CBLOCKLAB=colorspecifies color for filling background in block-variable legend
CBLOCKVAR=variable| (variables)specifies one or more variables whose values are colors for filling background of block-variable legend


Table 5.5: Axis and Axis Label Options
Option Description
CAXIS=colorspecifies color for axis lines and tick marks
CFRAME=color| (color-list)specifies fill colors for frame for plot area
CTEXT=colorspecifies color for tick mark values and axis labels
DISCRETEproduces horizontal axis for discrete numeric group values
HAXIS=values|AXISnspecifies major tick mark values for horizontal axis
HEIGHT=valuespecifies height of axis label and axis legend text
HMINOR=nspecifies number of minor tick marks between major tick marks on horizontal axis
HOFFSET=valuespecifies length of offset at both ends of horizontal axis
NOHLABELsuppresses label for horizontal axis
NOTICKREPspecifies that only the first occurrence of repeated, adjacent group values is to be labeled on horizontal axis
NOVANGLErequests vertical axis labels that are strung out vertically
SKIPHLABELS=nspecifies thinning factor for tick mark labels on horizontal axis
TURNHLABELSrequests horizontal axis labels that are strung out vertically
VAXIS=values|AXISnspecifies major tick mark values for vertical axis of ANOM boxchart
VMINOR=nspecifies number of minor tick marks between major tick marks on vertical axis
VOFFSET=valuespecifies length of offset at both ends of vertical axis
VZEROforces origin to be included in vertical axis for ANOM boxchart
WAXIS=nspecifies width of axis lines

Table 5.6: Options for Specifying Parameters for Decision Limits
Option Description
ALPHA=valuespecifies the probability of a Type I error
DFE=numberspecifies the degrees of freedom associated with the root mean square error
LIMITK=kspecifies number of groups for decision limits
LIMITN=n|VARYINGspecifies either a nominal sample size for fixed decision limits or varying limits
MEAN=valuespecifies the mean
NOREADLIMITScomputes decision limits for each response from the data rather than a LIMITS= data set
READINDEXES=ALL| 'label1'...'labeln'reads multiple sets of decision limits for each response from a LIMITS= data set
MSE=valuespecifies the mean square error
TYPE=keywordidentifies parameters as estimates or standard values and specifies value of _TYPE_ in the OUTLIMITS= data set


Table 5.7: Options for Displaying Decision Limits
Option Description
CINFILL=colorspecifies color for area inside decision limits
CLIMITS=colorspecifies color of decision limits, central line, and related labels
LDLLABEL='label'specifies label for lower decision limit
LIMLABSUBCHAR= 'character'specifies a substitution character for labels provided as quoted strings; the character is replaced with the value of the decision limit
LLIMITS=linetypespecifies line type for decision limits
NDECIMAL=nspecifies number of digits to right of decimal place in default labels for decision limits and central line
NOCTLsuppresses display of central line
NOLDLsuppresses display of lower decision limit
NOLIMITLABELsuppresses labels for decision limits and central line
NOLIMITSsuppresses display of decision limits
NOLIMITSFRAMEsuppresses default frame around decision limit information when multiple sets of decision limits are read from a LIMITS= data set
NOLIMITSLEGENDsuppresses legend for decision limits
NOUDLsuppresses display of upper decision limit
UDLLABEL='string'specifies label for upper decision limit
WLIMITS=nspecifies width for decision limits and central line
XSYMBOL='string'| keywordspecifies label for central line

Table 5.8: Options for Plotting and Labeling Points
Option Description
ALLLABEL=VALUE| (variable)labels every point on ANOM chart
CCONNECT=colorspecifies color for line segments connecting points on chart
CFRAMELAB=colorspecifies fill color for frame around labeled points
CNEEDLES=colorspecifies color for needles that connect points to central line
COUT=colorspecifies color for portions of line segments that connect points outside decision limits
NONEEDLESsuppresses vertical needles connecting points to central line
OUTLABEL=VALUE| (variable)labels points outside decision limits
SYMBOLLEGEND= NONE|namespecifies LEGEND statement for levels of symbol-variable
SYMBOLORDER= keywordspecifies order in which symbols are assigned for levels of symbol-variable
TURNALL|TURNOUTturns point labels so that they are strung out vertically
WNEEDLES=nspecifies width of needles


Table 5.9: Clipping Options
Option Description
CCLIP=colorspecifies color for plot symbol for clipped points
CLIPFACTOR=valuedetermines extent to which extreme points are clipped
CLIPLEGEND='string'specifies text for clipping legend
CLIPLEGPOS=keywordspecifies position of clipping legend
CLIPSUBCHAR= 'character'specifies substitution character for CLIPLEGEND= text
CLIPSYMBOL=symbolspecifies plot symbol for clipped points
CLIPSYMBOLHT=valuespecifies symbol marker height for clipped points

Table 5.10: Phase Options
Option Description
CPHASELEG=colorspecifies text color for phase legend
NOPHASEFRAMEsuppresses default frame for phase legend
OUTPHASE='string'specifies value of _PHASE_ in the OUTSUMMARY= data set
PHASEBREAKdisconnects last point in a phase from first point in next phase
PHASELABTYPE=value| keywordspecifies text size of phase legend
PHASELEGENDdisplays phase labels in a legend across top of chart
PHASELIMITSlabels decision limits for each phase, provided they are constant within that phase
PHASEREFdelineates phases with vertical reference lines
READPHASES= ALL| 'label1'...'labeln'specifies phases to be read from an input data set

Table 5.11: Options for Interactive ANOM Charts
Option Description
HTML=(variable)specifies a variable whose values are URLs to be associated with groups
HTML_LEGEND= (variable)specifies a variable whose values are URLs to be associated with symbols in the symbol legend
WEBOUT=SAS-data-setcreates an OUTTABLE= data set with additional graphics coordinate data

Table 5.12: Output Data Set Options
Option Description
OUTBOX= SAS-data-setcreates output data set containing group summary statistics, decision limits, and outlier values
OUTINDEX='string'specifies value of _INDEX_ in the OUTLIMITS= data set
OUTLIMITS= SAS-data-setcreates output data set containing decision limits
OUTSUMMARY= SAS-data-setcreates output data set containing group summary statistics
OUTTABLE= SAS-data-setcreates output data set containing group summary statistics and decision limits

Table 5.13: Grid Options
Option Description
GRIDadds grid to ANOM chart
LGRID=linetypespecifies line type for grid requested with the GRID option
WGRID=nspecifies width of grid lines

Table 5.14: Plot Layout Options
Option Description
ALLNplots means for all groups
BILEVELcreates ANOM boxcharts using half-screens and half-pages
EXCHARTcreates ANOM boxcharts for a response only when a group mean exceeds the decision limits
MAXPANELS=nmaximum number of pages or screens for chart
NMARKERSrequests special markers for points corresponding to sample sizes not equal to nominal sample size for fixed decision limits
NOCHARTsuppresses creation of chart
NOFRAMEsuppresses frame for plot area
NOLEGENDsuppresses legend for group sample sizes
NPANELPOS=nspecifies number of group positions per panel on each chart
REPEATrepeats last group position on panel as first group position of next panel
TOTPANELS=nspecifies number of pages or screens to be used to display chart
ZEROSTDdisplays ANOM boxchart regardless of whether the root mean square error is zero

Table 5.15: Graphical Enhancement Options
Option Description
ANNOTATE= SAS-data-setspecifies annotate data set that adds features to ANOM boxchart
DESCRIPTION='string'specifies string that appears in the description field of the PROC GREPLAY master menu for ANOM boxchart
FONT=fontspecifies software font for labels and legends on charts
NAME='string'specifies name that appears in the name field of the PROC GREPLAY master menu for ANOM boxchart
PAGENUM='string'specifies the form of the label used in pagination
PAGENUMPOS= keywordspecifies the position of the page number requested with the PAGENUM= option


Table 5.16: Overlay Options
Option Description
CCOVERLAY=(color-list)specifies colors for ANOM chart overlay line segments
COVERLAY=(color-list)specifies colors for ANOM chart overlay plots
COVERLAYCLIP=colorspecifies color for clipped points on overlays
LOVERLAY=(linetypes)specifies line types for ANOM chart overlay line segments
NOOVERLAYLEGENDsuppresses legend for overlay plots
OVERLAY=(variable-list)specifies variables to overlay on ANOM chart
OVERLAYCLIPSYM=symbolspecifies symbol for clipped points on overlays
OVERLAYCLIPSYMHT=valuespecifies symbol height for clipped points on overlays
OVERLAYHTML=(variable-list)specifies URLS to associate with ANOM chart overlay points
OVERLAYLEGLAB='label'specifies label for overlay legend
OVERLAYSYM=(symbol-list)specifies symbols for ANOM chart overlays
OVERLAYSYMHT=(value-list)specifies symbol heights for ANOM chart overlays
WOVERLAY=(value-list)specifies widths of ANOM chart overlay line segments

Table 5.17: Options for Producing Graphs Using ODS Styles
Option Description
BLOCKVAR=(variables)specifies variables whose values define colors for filling background of block-variable legend
BOXES=(variables)specifies variables whose values define colors box outlines
BOXFILL=(variables)specifies variables whose values define colors for filling boxes
CFRAMELABdraws a frame around labeled points
CPHASEBOXrequests boxes enclosing all plotted points for a phase
CPHASEBOXCONNECTrequests lines connecint adjacent enclosing boxes
CPHASEBOXFILLfills boxes enclosing all plotted points for a phase
CPHASEMEANCONNECTrequests lines connecting phase average value points


Table 5.18: Options for ODS Graphics
Option Description
BLOCKREFOPACITY=specifies the wall fill opacity for blocks and phases
BOXOPACITY=specifies the box fill opacity for box-and-whisker charts
INFILLOPACITY=specifies the control limit infill opacity
NOBLOCKREFsuppresses block and phase reference lines
NOBLOCKREFFILLsuppresses block and phase wall fills
NOBOXFILLLEGENDsuppresses legend for levels of a BOXFILL= variable
NOFILLLEGENDsuppresses legend for levels of a BOXFILL= variable
NOPHASEREFsuppresses block and phase reference lines
NOPHASEREFFILLsuppresses block and phase wall fills
NOREFsuppresses block and phase reference lines
NOREFFILLsuppresses block and phase wall fills
NOTRANSPARENCYdisables transparency in ODS Graphics output
ODSFOOTNOTE=specifies a graph footnote
ODSFOOTNOTE2=specifies a secondary graph footnote
ODSLEGENDEXPANDspecifies that legend entries contain all levels observed in the data
ODSTITLE=specifies a graph title
ODSTITLE2=specifies a secondary graph title
PHASEBOXLABELSdraws phase labels as titles along the top of phase boxes
PHASEPOS=specifies vertical position of phase legend
PHASEREFLEVEL=associates phase and block reference lines with either innermost or the outermost level
PHASEREFOPACITY=specifies the wall fill opacity for blocks and phases
REFFILLOPACITY=specifies the wall fill opacity for blocks and phases
SIMULATEQCFONTdraws central line labels using a simulated software font