Chapter Contents |
Previous |
Next |
HISTOGRAM Statement |
See CAPHST1 in the SAS/QC Sample Library |
This example is a continuation of the preceding example.
The following statements
show how you can use HISTOGRAM statement options and
INSET statements to customize a histogram:
title 'Process Capability Analysis of Plating Thickness'; legend1 frame cframe=ligr cborder=black position=center; proc capability data=trans noprint; spec lsl = 3.45 llsl = 2 clsl = black usl = 3.55 lusl = 3 cusl =black; histogram thick / normal(color=yellow w=3) midpoints = 3.4 to 3.6 by 0.025 vscale = count cfill = blue nospeclegend legend = legend1 cframe = ligr; inset lsl usl / cfill = blank cfill = ywh; inset n mean (5.2) cpk (5.2) / cfill = blank cfill = ywh; run;
The histogram is displayed in Figure 4.5.
The MIDPOINTS= option specifies a list of values to use as bin midpoints. The VSCALE=COUNT option requests a vertical axis scaled in counts rather than percents. The CFILL= option specifies a color for the histogram bars. The INSET statements inset the specification limits and summary statistics. The NOSPECLEGEND option suppress the default legend for the specification limits that is shown in Figure 4.4.
For more information about HISTOGRAM statement options, see "Dictionary of Options". For details on the INSET statement, see Chapter 5, "INSET Statement" .
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.