Creating Normal Q-Q Plots

/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: CAPQQ1                                              */
/*   TITLE: Creating Normal Q-Q Plots                           */
/* PRODUCT: QC                                                  */
/*  SYSTEM: ALL                                                 */
/*    KEYS: Capability Analysis, Quantile-Quantile Plots,       */
/*   PROCS: CAPABILITY                                          */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT: saswgr                                              */
/*     REF: SAS/QC Software:  Usage and Reference, Version 6,   */
/*          First Edition, Volume 1 and Volume 2                */
/*    MISC:                                                     */
/*                                                              */
/*  Examples in the documentation were created using the        */
/*    statement:  ods listing style=statistical;                */
/*                                                              */
/****************************************************************/

data Sheets;
   input Distance @@;
   label Distance='Hole Distance in cm';
   datalines;
 9.80 10.20 10.27  9.70  9.76
10.11 10.24 10.20 10.24  9.63
 9.99  9.78 10.10 10.21 10.00
 9.96  9.79 10.08  9.79 10.06
10.10  9.95  9.84 10.11  9.93
10.56 10.47  9.42 10.44 10.16
10.11 10.36  9.94  9.77  9.36
 9.89  9.62 10.05  9.72  9.82
 9.99 10.16 10.58 10.70  9.54
10.31 10.07 10.33  9.98 10.15
;

title 'Normal Quantile-Quantile Plot for Hole Distance';
proc capability data=Sheets noprint;
   spec lsl=9.5 usl=10.5;
   qqplot Distance / odstitle=title;
run;

title 'Normal Quantile-Quantile Plot for Hole Distance';
proc capability data=Sheets noprint;
   spec lsl=9.5 usl=10.5;
   qqplot Distance / normal(mu=est sigma=est)
                     square
                     nospeclegend
                     odstitle=title;
run;

title 'Normal Quantile-Quantile Plot for Hole Distance';
proc capability data=Sheets noprint;
   qqplot Distance / normal(mu=est sigma=est)
                     nolegend
                     pctlaxis(grid label='Normal Percentiles')
                     odstitle=title;
run;

title 'Normal Quantile-Quantile Plot for Hole Distance';
proc capability data=Sheets noprint;
   spec lsl=9.5 usl=10.5;
   qqplot Distance / normal(mu=est sigma=est cpkref)
                     pctlaxis(grid lgrid=35)
                     nolegend pctlscale
                     odstitle=title;
run;

ods graphics off;
symbol v=plus;
title "Normal Quantile-Quantile Plot for Hole Distance";
proc capability data=Sheets noprint;
   spec  lsl=9.5   llsl=2   clsl=blue
         usl=10.5  lusl=20  cusl=blue;
   qqplot Distance / normal(mu=est sigma=est cpkscale cpkref)
                     nolegend
                     square;
   inset n mean (5.2) std="Std Dev" (4.2) cpk (4.2) /
         pos=(-0.75,10.48) data refpoint=tl;
run;