VBAR (variable-list )</ options >;
The VBAR statement creates a Pareto chart in which vertical bars represent the frequencies of problems in a process or operation. A vertical Pareto chart has a horizontal category axis. The frequency axis is oriented vertically on the left side of the chart and measures the lengths of the bars on the chart. The cumulative percentage axis is on the right of the chart and measures the cumulative percentage curve.
The VBAR statement produces three 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 by default if SAS/GRAPH is licensed.
It produces legacy line printer charts when you specify the LINEPRINTER option in the PROC statement.
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. A chart is created 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 are used to determine the categories and are displayed in labels and legends. The maximum format length is 64.
Table 15.6 lists the VBAR statement options by function. For complete descriptions, see the section Dictionary of HBAR and VBAR Statement Options.
Table 15.6: VBAR 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 that are 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 that have percentages 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 the color for bars that have the n highest values |
|
Specifies the color for bars that have the n lowest values |
|
Specifies a label for the OTHER= category |
|
Specifies the bottommost category |
|
Options for the Cumulative Percent Curve |
|
Specifies the corner of the 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 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 top 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 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 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 and 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 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 the 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 the BARLABEL= labels |
|
Specifies the width (horizontal 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 that is 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 the frequency axis grid lines |
|
Specifies the color for the cumulative percentage axis grid lines |
|
Draws reference lines behind bars |
|
Specifies the color for the 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 text font |
|
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 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 the CATREF= lines |
|
Specifies the line type for the CUMREF= lines |
|
Specifies the line type for the FREQREF= lines |
|
Specifies the line type for the frequency axis grid lines |
|
Specifies the line type for the cumulative percentage axis grid lines |
|
Specifies the name of the Pareto chart’s GRSEG catalog entry |
|
Suppresses the axis frame |
|
Specifies a pattern for the bars |
|
Specifies the pattern for the bars that have the n highest values |
|
Specifies the pattern for the bars that have the n lowest values |
|
Specifies the pattern for the OTHER= bar |
|
Specifies a legend for the CTILES= colors |
|
Specifies the label for the TILELEGEND= legend |
|
Turns and strings vertically the characters in the frequency and cumulative percentage axis labels |
|
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 |
|
Options for Legacy Line Printer Charts |
|
Specifies the plot character for the cumulative percentage curve segments |
|
Specifies the plot character for category reference lines |
|
Specifies the plot character for frequency and cumulative percentage reference lines |
|
Specifies the plot character for points on the cumulative percentage curve |