Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Details and Examples

Example 29.3: Highlighting the "Vital Few"

See PARETO10 in the SAS/QC Sample Library

This example is a continuation of Example 29.2.

In some applications you may want to use colors and patterns to highlight the bars corresponding to the most frequently occurring categories, which are referred to as the "vital few."

The following statements highlight the two most frequently occurring categories in each cell of the comparative Pareto chart shown in Output 29.2.4:

   title 'Which Problems Occur Most Often?';
   proc pareto data=failure4;
      vbar cause / class       = ( process day )
                   freq        = counts
                   nrows       = 2
                   ncols       = 5
                   last        = 'Miscellaneous'
                   scale       = count
                   chigh(2)    = vigb
                   cbars       = bigb
                   cframe      = ligr
                   cframeside  = ligr
                   cframetop   = ligr
                   hlleglabel  = 'Severity:'
                   catleglabel = 'Failure Causes:'
                   intertile   = 1.0
                   nohlabel
                   nocurve
                   nlegend ;
   run;
Specifying CHIGH(2)=GREEN and PHIGH(2)=M5X45 causes the two highest bars in each cell to be filled in green with the pattern M5X45 (refer to SAS/GRAPH Software: Reference for a pattern selection guide). If you omit the PHIGH(2)= option, a solid green fill is used.

The new chart is displayed in Output 29.3.1. In all but two of the cells, the two vital problems are Contamination and Oxide Defect.

You can also highlight the "trivial many" categories (also referred to as the "useful many") with the CLOW(m)= and PLOW(m)= options. You can use these options in conjunction with the CHIGH(n)=, PHIGH(n)=, CBARS=, and PBARS= options. For further details, see the entries for these options in the "Dictionary of Options" .

Output 29.3.1: Emphasizing the "Vital Few"
parex3.gif (8489 bytes)

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.