HBAR (variable-list )</ options >;
The HBAR statement creates a Pareto chart that uses horizontal bars to represent the frequencies of problems in a process or operation. The HBAR statement does not produce line printer charts, so you cannot specify it when you specify the LINEPRINTER option in the PROC PARETO statement.
A horizontal Pareto chart has a vertical category axis. The frequency axis appears at the top of the chart and measures the lengths of the bars on the chart. The cumulative percentage axis is at the bottom of the chart and measures the cumulative percentage curve.
The HBAR statement produces two types of output for Pareto charts:
It produces ODS Graphics output if ODS Graphics is enabled (for example, by specifying the ODS GRAPHICS ON statement prior to the PROC statement).
Otherwise, it produces traditional graphics if SAS/GRAPH is licensed.
For more information about producing these different types of graphs. see Chapter 3: SAS/QC Graphics,
The variable-list specifies the process variables to be analyzed. PROC PARETO creates a chart for each variable, and the values of each variable determine the Pareto categories for that chart. If variable-list contains only one process variable, you do not need to enclose it in parentheses.
The variables can be numeric or character, and the maximum length of a character variable is 64. Formatted values determine the categories and are displayed in labels and legends. The maximum format length is 64.
Table 15.3 lists the HBAR statement options by function. For complete descriptions, see the section Dictionary of HBAR and VBAR Statement Options.
Table 15.3: HBAR Statement Options
Option |
Description |
---|---|
Data Processing Options |
|
Specifies the frequency variable |
|
Requests that missing values of the process variable be treated as a Pareto category |
|
Requests that missing values of the first CLASS= variable be analyzed as a level |
|
Requests that missing values of the second CLASS= variable be analyzed as a level |
|
Creates an output data set that saves the information that is displayed in the Pareto chart |
|
Specifies weight variables used to weight frequencies |
|
Options for Restricting the Number of Categories |
|
Specifies a label for the OTHER= bar |
|
Displays only the categories whose cumulative percentage is less than the specified percentage |
|
Displays only the categories that have the n highest values |
|
Displays only the categories whose percentages are greater than the specified percentage |
|
Merges all categories that are not displayed |
|
Specifies an OUT= data set character variable value for the OTHER= category |
|
Specifies an OUT= data set numeric variable value for the OTHER= category |
|
Options for Displaying Bars |
|
Displays labels for bars |
|
Specifies a variable that groups bars for a display by using ODS style colors |
|
Specifies color for bars that have the n highest values |
|
Specifies color for bars that have the n lowest values |
|
Specifies a label for the OTHER= category |
|
Specifies the bottommost category |
|
Options for the Cumulative Percentage Curve |
|
Specifies the corner of topmost bar to which the curve is anchored |
|
Labels curve points with their values |
|
Suppresses the cumulative percentage curve |
|
Suppresses the cumulative percentage axis label |
|
Suppresses the cumulative percentage axis tick marks and tick mark labels |
|
Options for Comparative Pareto Charts |
|
Specifies classification variables |
|
Specifies the key cell |
|
Requests proportion-of-frequency bars |
|
Specifies the distance in screen percentage units between tiles |
|
Requests that missing values of the first CLASS= variable be analyzed as a level |
|
Requests that missing values of the second CLASS= variable be analyzed as a level |
|
Specifies the number of columns |
|
Suppresses the placement of the key cell in the top left corner |
|
Specifies the number of rows |
|
Specifies the order in which values of the first CLASS= variable are displayed |
|
Specifies the order in which values of the second CLASS= variable are displayed |
|
Options for Controlling Axes |
|
Specifies the distance factor between the longest bar and the right frame |
|
Specifies tick mark values for the frequency axis |
|
Labels the frequency axis |
|
Specifies tick mark values for the cumulative percentage axis |
|
Specifies a label for the cumulative percentage axis |
|
Specifies the frequency axis offset in screen percentage units |
|
Adds a grid that corresponds to the frequency axis |
|
Adds a grid that corresponds to the cumulative percentage axis |
|
Suppresses the Pareto chart |
|
Suppresses the frequency axis label |
|
Suppresses the cumulative percentage axis label |
|
Suppresses tick marks and tick mark labels for the frequency axis |
|
Suppresses tick marks and tick mark labels for the cumulative percentage axis |
|
Suppresses the category axis label |
|
Specifies the units in which the frequency axis is scaled |
|
Specifies the category axis offset in screen percentage units |
|
Options for Reference Lines |
|
Requests reference lines perpendicular to the category axis |
|
Specifies labels for CATREF= lines |
|
Requests reference lines perpendicular to the cumulative percentage axis |
|
Specifies labels for CUMREF= lines |
|
Requests reference lines perpendicular to the frequency axis |
|
Specifies labels for FREQREF= lines |
|
Specifies the position of FREQREFLABELS= and CUMREFLABELS= labels |
|
Specifies the position of CATREFLABELS= labels |
|
Options for Displaying Legends |
|
Displays a legend for the BARS= , CBARS= , or PBARS= options |
|
Displays a label for the BARLEGEND= legend |
|
Specifies a label for the Pareto categories legend |
|
Frames the sample size legend |
|
Displays a label for the legend that describes colors and patterns of the highest or lowest bars |
|
Requests a sample size legend |
|
Suppresses the legend that describes colors and patterns of the highest and lowest bars |
|
Options for ODS Graphics Output |
|
Controls the display of the Pareto categories legend |
|
Specifies the type of Pareto chart to be produced |
|
Requests markers on the cumulative percentage curve |
|
Specifies a footnote to be displayed on the chart |
|
Specifies a secondary footnote to be displayed on the chart |
|
Specifies a title to be displayed on the chart |
|
Specifies a secondary title to be displayed on the chart |
|
Specifies a variable whose values are URLs to be associated with bars |
|
Options for Traditional Graphics |
|
Rotates category axis tick mark labels |
|
Applies annotation only to the key cell |
|
Specifies an annotation data set that uses frequency axis data units |
|
Specifies an annotation data set that uses cumulative percentage axis data units |
|
Specifies the position of BARLABEL= labels |
|
Specifies the width (vertical dimension) of the bars in screen percentage units |
|
Specifies the axis color |
|
Specifies the color for the cumulative percentage axis and tick marks |
|
Specifies the color for bar outlines |
|
Specifies the color for bars |
|
Specifies the color for CATREF= lines |
|
Specifies the color for the curve |
|
Specifies the color for CUMREF= lines |
|
Specifies the color for the area enclosed by axes and frame |
|
Specifies the frame color for row labels |
|
Specifies the frame color for column labels |
|
Specifies the color for FREQREF= lines |
|
Specifies the color for frequency axis grid lines |
|
Specifies the color for cumulative percentage axis grid lines |
|
Draws reference lines behind bars |
|
Specifies the color for OTHER= bar |
|
Specifies the color for text |
|
Specifies the color for row labels |
|
Specifies the color for column labels |
|
Specifies the colors for tile backgrounds |
|
Specifies a description of the Pareto chart’s GRSEG catalog entry |
|
Specifies the font for text |
|
Draws reference lines in front of bars |
|
Specifies the text height in screen percentage units |
|
Specifies a variable whose values create links that are associated with bars in traditional graphics output |
|
Specifies the font for text inside the frame |
|
Specifies the text height in screen percentage units for text inside the frame |
|
Specifies the distance between bars in screen percentage units |
|
Specifies the line type for CATREF= lines |
|
Specifies the line type for CUMREF= lines |
|
Specifies the line type for FREQREF= lines |
|
Specifies the line type for frequency axis grid lines |
|
Specifies the line type for cumulative percentage axis grid lines |
|
Specifies the name of the Pareto chart’s GRSEG catalog entry |
|
Suppresses the axis frame |
|
Specifies the pattern for the bars |
|
Specifies the pattern for bars that have the n highest values |
|
Specifies the pattern for bars that have the n lowest values |
|
Specifies the pattern for the OTHER= bar |
|
Specifies a legend for the CTILES= colors |
|
Specifies label for TILELEGEND= legend |
|
Specifies the width in pixels for the axes and frame |
|
Specifies the width for bar outlines |
|
Specifies the width of frequency axis grid lines |
|
Specifies the width of cumulative percentage axis grid lines |